I extract nodes from an XML document by calling -nodesForXPath:error:
. Now i wonder if it guarantees, that the nodes are returned in the same order as they appear from top to bottom in the document (it's crucial in my case).
My XML looks something like this and i retrieve the b
tags with the XPath query:
<a>
<b>
...
</b>
<b>
...
</b>
<a>
Unfortunately the b
tags do not have an explicit counter.