-
Comparing 2 XML Documents (4 messages)
- Posted by: Brian Chan
- Posted on: February 11 2004 16:12 EST
Does anyone has any experience in comparing two XML documents and showing the diff between them.Threaded Messages (4)
- Comparing 2 XML Documents by stephen smithstone on February 12 2004 03:06 EST
- Comparing 2 XML Documents by Shreeram Iyer on February 12 2004 09:46 EST
- Comparing 2 XML Documents by Paul Strack on February 12 2004 12:41 EST
- Comparing 2 XML Documents by Nanne Baars on February 17 2004 08:00 EST
- Comparing 2 XML Documents by Paul Strack on February 12 2004 12:41 EST
-
Comparing 2 XML Documents[ Go to top ]
- Posted by: stephen smithstone
- Posted on: February 12 2004 03:06 EST
- in response to Brian Chan
maybe do a google search for java diff tool -
Comparing 2 XML Documents[ Go to top ]
- Posted by: Shreeram Iyer
- Posted on: February 12 2004 09:46 EST
- in response to Brian Chan
If you just need to compare two XML files textually, try out ExamDiff. I guess the URL for ExamDiff is www.examdiff.com. If not, just google it out.
-Shree -
Comparing 2 XML Documents[ Go to top ]
- Posted by: Paul Strack
- Posted on: February 12 2004 12:41 EST
- in response to Shreeram Iyer
It would also be helpful to reduce the XML documents to some kind of "canonical form" before comparing them. You can use either XSLT or JAXP to do this.
I would suggest (a) stripping out all the whitespace-only nodes and (b) adding a line break after each end tag. That should cut down on false negatives because of whitespace differences. -
Comparing 2 XML Documents[ Go to top ]
- Posted by: Nanne Baars
- Posted on: February 17 2004 08:00 EST
- in response to Paul Strack