Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
How can I validate my RESPONSE (XML file). I have a situation where my response XML file's attribute does not have same order as they are in WSDL. All attributes are present but order is different, how can I make sure that attributes come in same way as they are in schema. My service is running as a route. Is there any component to validate XML response?
Thanks in advance
Are you talking about elements or attributes. Elements are shown like this.....
<myElement>My element's value</myElement>
....attributes are shown here in bold....
<myElement attribute1="value1" attribute2="value2">My element's value</myElement>
The order of attributes never matter, the order of elements often do not matter either....so long as the nesting of elements is maintained.
I am guessing you are talking about elements here though. So the first question is, does the order of the elements really matter to the application you are using the XML with?