Monday, 9 February 2015

Find delta-difference between two xml File in marklogic



I have a requirement where i need to find difference between two XML file-Updated/Latest File(File1) and previous version(File2). The Updated XML file may have additional nodes or some nodes may be deleted. I have to compare this two XML and need to show differences. I am using deep-equal function two compare two nodes but my current logic works only if File1 has greater or equal nodes than File2. It is not working if File1 has less nodes than File2. Kindly help or give me some logic to compare Thanks


No comments:

Post a Comment