JRE 1.6
XMLUnit 1.3
Windows 7
I'm not sure exactly why, but DetailedDiff appears to be comparing different
nodes between files. I'd like it to compare the exact xpath location in one
file to the exact xpath location in the other.
Output example to explain a bit:
This one looks ok:
Expected attribute name 'product' but was 'null' - comparing <topic...> at
/topic[1] to <topic...> at /topic[1]
Here it is comparing (at the end of the xpath loc) node 2 to node 3:
Expected attribute name 'null' but was 'product' - comparing <li...> at
/topic[1]/body[1]/section[1]/table[1]/tbody[1]/tr[2]/td[2]/ul[1]/li[2] to
<li...> at
/topic[1]/body[1]/section[1]/table[1]/tbody[1]/tr[2]/td[2]/ul[1]/li[3]
Same thing here (node 3 to node 4)
Expected attribute value 'test' but was 'test2' - comparing <li
product="test"...> at
/topic[1]/body[1]/section[1]/table[1]/tbody[1]/tr[2]/td[2]/ul[1]/li[3]/@product
to <li product="test2"...> at
/topic[1]/body[1]/section[1]/table[1]/tbody[1]/tr[2]/td[2]/ul[1]/li[4]/@product
I've even tried setting the ElementQualifier to null in both the Diff and
DetailedDiff:
Diff xmlDiff = new Diff(xmlStream, xmlStream2);
xmlDiff.overrideElementQualifier(null);
DetailedDiff dXmlDiff = new DetailedDiff(xmlDiff);
dXmlDiff.overrideElementQualifier(null);
Any help would be greatly appreciated.
Dave
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Xmlunit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmlunit-general