>It appears that the XMLTOCURSOR utility does not honor the index tag of a cursor when called thru a DLL. When the object is instantiated in FoxPro, the XML string is in the order specified by the 'set order to tag ...', however, when the library is compiled into a DLL, the XML is always returned in the physical record order.
Hmm. I don't get this. Perhaps you can bypass the problem by selecting results into a cursor using the ORDER BY clause, and performing the CursorToXML on that?
Erik Moore
Clientelligence