Xpath or xquery and test the order

Posted by mada on Stack Overflow See other posts from Stack Overflow or by mada
Published on 2010-05-10T15:27:16Z Indexed on 2010/05/10 16:44 UTC
Read the original article Hit count: 313

Filed under:

Hi,

Using SoapUI (great tool for WS by the way), I have the following xml result :

<code>c</code>
<code>b</code>
<code>a</code>

For this sample above, i would like to test the code value are order asc. Of course, for this sample the test will fail like excepted.

Any solution with xquery or xpath (i can use groovy inside the test if necessary)

Thanks in advance.

© Stack Overflow or respective owner

Related posts about xpath