The above is just a piece of the whole xml and it could be nested at any level.
The original xml had them in the reverse sequence.
I get a lot of not tag_id not matching because their sequence is different though values are same.
How do I ignore the sequence errors on this? Or how do I make sure I am comparing them properly even if their sequence is different?
This kind of a piece of xml can occur in several places in the whole xml file so there is no particular case of element name i can separate and do a different kind of processing.
Please advise.
Last edit: knp 2013-12-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the following xml piece:
https://gist.github.com/anonymous/7934085
The above is just a piece of the whole xml and it could be nested at any level.
The original xml had them in the reverse sequence.
I get a lot of not tag_id not matching because their sequence is different though values are same.
How do I ignore the sequence errors on this? Or how do I make sure I am comparing them properly even if their sequence is different?
This kind of a piece of xml can occur in several places in the whole xml file so there is no particular case of element name i can separate and do a different kind of processing.
Please advise.
Last edit: knp 2013-12-12
At first glance it looks as if using an ElementNameAndAttributeQualifier (see http://xmlunit.sourceforge.net/userguide/html/ar01s03.html#ElementQualifier ) should do the trick.