Compares the XML document produced by a test method with the expected XML document. The two XML documents are specified at construction time. The comparison is performed by a call to the {@link #compare()} method. The execution is delegated to the variousprotected methods defined in this class, which can be overridden.
By default, this comparator expects the documents to contain the same elements and the same attributes (but the order of attributes may be different). However it is possible to:
- Specify whether comments shall be ignored (see {@link #ignoreComments})
- Specify attributes to ignore in comparisons (see {@link #ignoredAttributes})
- Specify nodes to ignore, including children (see {@link #ignoredNodes})
- Specify a tolerance threshold for comparisons of numerical values (see {@link #tolerance})
@author Johann Sorel (Geomatys)
@author Martin Desruisseaux (Geomatys)
@since 0.3 (derived from geotk-3.17)
@version 0.3
@module
@see XMLTestCase
@see Assert#assertXmlEquals(Object,Object,String[])