I have an xml message like this
<Body>
<test>
<element>2</element>
<element>6</element>
<element>1</element>
</test>
</Body>
and i want to select the element with the lowest number
something like this
SET data[] = SELECT e FROM Output.Body.test.element[] AS e ORDER BY e.element;
I would have done this if the "ORDER BY" is supported in esql select but it is not, So is there any other way to do something like this?
I know the sql statements can be supported if i used PASSTHRU statement which passes the statement to the DBMS directly, but i am not using DBMS here, i am selecting from xml message.