def are_equivalent_xml(a_xml, b_xml):
    """Check if two ReplicationPolicy XML docs are semantically equivalent.

    The ReplicationPolicy XML docs are normalized before comparison.

    Args:
      a_xml, b_xml: ReplicationPolicy XML docs to compare

    Returns:
      bool: ``True`` if the resulting policies for the two objects are semantically
      equivalent.

    """
    return are_equivalent_pyxb(
        d1_common.xml.deserialize(a_xml), d1_common.xml.deserialize(b_xml)
    )