>>Hi,
>>
>>Can I rely that XMLTOCURSOR() always loads XML elements into the cursor in the same order as they are in the physical file? Or it could be random?
>
>I created a simple text prg with 1000 FOR loops. In each loop I was retrieving an XML via XMLCURSOR() and NOT one time the order was different from the physical order of elements in the XML. So the answer to my questions is Yes and No <g>.
The order depends on the active index tag when CursorToXml() was done
Gregory