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
Author

Compare two xmls using XQUERY

Natraj Aggas
Greenhorn

Joined: Jul 11, 2011
Posts: 15
Hi,
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.

Thanks,
-N
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compare two xmls using XQUERY
 
Similar Threads
Performance Problem Searching Equally Named Nodes In Two XMLs
XML Compare with XPath
Capture request xml
Merge nodes of two xml's in one
Replacement for SQLXML