2.1.9. xml_compare

2.1.9.1. Module d1_common.xml_compare

Created:

2011-03-03

Author:

DataONE (Dahl)

Dependencies:
  • python 2.6

Compare two XML documents for functional equality.

Functions

assert_xml_equal(xml_first, xml_second) Same as compare, but raises AssertionError instead of CompareError.
compare(xml_first, xml_second) Compare two XML files. Raise CompareError if comparison fails.

Classes

XmlCompare(xml_first, xml_second[, encoding])

Exceptions

CompareError Raised when a difference is found between the two XML documents.

Table Of Contents

Related Topics