#19 Bad order with selectNodes //something

closed
nobody
None
5
2004-09-15
2003-12-22
Dániel Dékány
No

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:

<a>
<x>1</x>
<b>
<x>2</x>
<x>3</x>
</b>
<x>4</x>
</a>

XPath expression //x will return the nodes in order 1, 4,
2, 3.

I have tried it with both 1.0 FCS and the 1.1 beta.

Discussion

  • Kai Wörner
    Kai Wörner
    2004-08-16

    Logged In: YES
    user_id=817048

    I'm having the same problems - is this bug going to be fixed?

     
  • Bazza
    Bazza
    2004-09-15

    • status: open --> closed
     
  • Bazza
    Bazza
    2004-09-15

    Logged In: YES
    user_id=1005507

    Active development of jaxen has stopped on sourceforge.net and moved to
    http://jaxen.codehaus.org/ . This issue has been closed on sourceforge and
    reopened on the JIRA issue tracker, http://jira.codehaus.org . The new issue
    URL is below.