Two Laptop Bag
The moose likes XML and Related Technologies and the fly likes Compare two xmls using XQUERY Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Compare two xmls using XQUERY" Watch "Compare two xmls using XQUERY" New topic

Compare two xmls using XQUERY

Natraj Aggas

Joined: Jul 11, 2011
Posts: 15
I have two xmls, say Sample1.xml and Sample2.xml. Now I need to compare both the xml values (parent nodes, child nodes, attributes and its values) and return the differences between them in xquery. I knew I can use deep-equal function to say if the xmls are identical. But I do not know how to compare and return the xml difference.

Please help.

I agree. Here's the link:
subject: Compare two xmls using XQUERY
It's not a secret anymore!