|
>> I'm trying to find out the best
way to compare 2 DOM trees.
Have a
look at xmlUnit <http://xmlunit.sourceforge.net/>.
From
the web page:
XMLUnit allows you to
assertXMLEquals("<stuff></stuff>",
"<stuff/>");
or and
you can do this
assertXMLEquals(xmlFile, anotherXmlFile);
and
this
assertXMLEquals(xmlStream,
xmlFile);
Compare XML in files, or in Strings. Extract specific content using XPath expressions or perform XSL transformations. Even treat badly formed HTML as XML so it can be tested too. Hope
this helps
Dietrich
|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
