|
From: Abhin U. <ud...@gm...> - 2006-04-21 07:26:33
|
Hi,
I am relatively new to xmlunit, and need to compare two xml files got
from different sources.
I have two xml files which look something like this :
<Customer-list>
// Various customer nodes
<Customer>
<Attribute name=3D"Name">
<Value>John</Value>
</Attribute>
</Customer>
</Customer-list>
<Customer-list>
// Various customer nodes
<Customer>
<Attribute name=3D"Name">
<Value>John</Value>
</Attribute>
<Attribute name=3D"Age">
<Value>36</Value>
</Attribute>
</Customer>
</Customer-list>
I want the comparison of these two nodes to be accounted as similiar.
i.eThe Age node has to be ignored completely ( Even if the values of
age are
different in the two nodes, or absent in one of them ) during comparison.
Is there any easy way, without writing a recusrsive search and ignore
myself.
Thanks,
Abhin H
|