File: org.custommonkey.xmlunit.DifferenceConstants:130 Version: XmlUnit 1.0 Removed: /* ysimmhan : removed public static final Difference ELEMENT_NUM_ATTRIBUTES = new Difference(ELEMENT_NUM_ATTRIBUTES_ID, "number of element attributes"); */ Added: // ysimmhan : added public static final Difference ELEMENT_NUM_ATTRIBUTES = new Difference(ELEMENT_NUM_ATTRIBUTES_ID, "number of element attributes", true); // end ysimmhan Reason: Allow comparing attributes in the element though the number of attributes are different. This is done by setting recoverable to be true when the difference is in the number of attributes. We need this because while comparing objects returned by Xindice, we need to ignore the xindice:key and xindice:col attributes in the XML returned by Xindice. These attributes are not present in the Xml that we supply. We implement a DifferenceListener that listens for Difference caused variable number of Attributes and returns a result of 'similar' that causes the DifferenceEngine to proceed with comparison. _______________________________________________ Yogesh L. Simmhan ysimmhan@cs.indiana.edu December 18, 2003