AnsweredAssumed Answered

How to compare two XML files?

Question asked by koen.van.de.vondel173336 on May 2, 2016
Latest reply on May 3, 2016 by koen.van.de.vondel173336

Hi all,

 

How can I compare two XML files with the same XML schema?

The result of this comparison can only contain the changed fields and an ID.
One XML file will be taken from a server and one XML file is the new incoming one.

 

Example:
New XML file:
<id>1234<id>

<firstname>John<fistname>

<lastname>Scott<lastname>

<city>London<city>

 

Old XML file from the server:

<id>1234<id>

<firstname>John<fistname>

<lastname>Scott<lastname>

<city>Manchester<city>

 

Result:

<id>1234<id>

<city>Manchester<city>

 

Another result could for example only contain the changed field.
Getting the id is easy by using a document combine after finding the difference.

<city>Manchester<city>

 

Thanks in advance!

 

Kr,

Koen

Outcomes