According the documentation of BaseXPath.selectNodes,
"nodes will be returned in document-order" unless I'm
"using XPath expressions involving the union operator".
But it seems that //somthing expressions return the result
not in document order. E.g for this XML:
XPath expression //x will return the nodes in order 1, 4,
I have tried it with both 1.0 FCS and the 1.1 beta.