How can I check element order in xml -


i wrote little mock-up api, , want sure generated xml has same tag order real one. dont want check values in tags, , tags can missing. have check order of existing tags.

e.g:

<root data="somedata">   <sub-element>      <sub-sub-element />      <sub-sub-element />   </sub-element> </root> 

is same as

<root data="otherdata">   <sub-element>   </sub-element> </root> 

but not same this

<root data="somedata">   <other-wrapping-element>      <sub-element>         <sub-sub-element />         <sub-sub-element />      </sub-element>   <other-wrapping-element> </root> 

what easiest way check this? looking ready use online tool or program, advice easy & fast implementation appreciated!

unless api provides xml schema definitions (xsd) it's messages, may define them on own. validate against schema.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -