xmlunit ignore extra tag names

HT-Jose

New Member
I have 2 xml files shown below:\[code\] XML1: <data> <a1>as</a1> <datasub> <a>some1</a> <b>some 2</b> <c>some3</c> </datasub> </data>\[/code\]XML2:\[code\] <data> <a1>as</a1> <datasub> <a>some1</a> <c>some3</c> </datasub> </data>\[/code\]How will I be able to compare the xml files using XMLUnit. I tried using the difference listener, and it says the xmls are different. Can I ignore the tag and run the test? Any help in this regard wil be useful..
 
Back
Top