Module eoxserver.testing.xcomp

Simple XML documets’ comparator.

XML Comparison

eoxserver.testing.xcomp.xmlCompareFiles(src0, src1, verbose=False)

Compare two XML documents passed as filenames, file or file-like objects.

eoxserver.testing.xcomp.xmlCompareStrings(str0, str1, verbose=False)

Compare two XML documents passed as strings.

eoxserver.testing.xcomp.xmlCompareDOMs(xml0, xml1, verbose=False)

Compare two XML documents passed as DOM trees (xml.dom.minidom).

Exceptions

Thies are the excetions raised by the XML comparison:

class eoxserver.testing.xcomp.XMLError

XML base error error

class eoxserver.testing.xcomp.XMLParseError

XML parse error

class eoxserver.testing.xcomp.XMLMismatchError

XML mismatch error