I have two xmls in string format. Need to compare both of them by skipping few nodes. In the result only difference of node and corresponding values are required.
Suppose I have the following two xmls :
Message -1
<block4>
<tag>
<name>35B</name>
<value>/GB/B0W1VM9</value>
</tag>
</block4>
Message - 2
<block4>
<tag>
<name>35B</name>
<value>/US/999999999
NOT AVAILABLE AT PRESENT</value>
</tag>
</block4>
I am using XMLUnit but I want to find the difference from few blocks and want to skip few nodes having specific values. like in <tag>
value being : :PREV should be skipped.
Note : In the end want to print the result in excel.
Used the following code but not useful : https://stackoverflow.com/a/16471601/3493471