Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of records of XMLTOCURSOR()
Message
De
16/05/2013 09:08:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01573984
Message ID:
01574061
Vues:
47
>>>>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
>
>In my example there was not use of CursorToXml(). The XML created manually. And I was checking how XMLTOCURSOR loads the physical file into the cursor. My goal was to be sure that if I "tag" (save for future use) a certain element in the XML (after loading it to cursor via XMLTOCURSOR()) this "tag" always points to the same element. Even when I load the XML to cursor in different parts of the application.

I'd think it would be safe to assume that given the same XML input you will receive the same output. Unless there's some global VFP setting that might affect it - but I can't think of any.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform