Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML Parsing
Message
De
25/06/2003 14:48:53
 
 
À
25/06/2003 14:48:07
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Divers
Thread ID:
00803945
Message ID:
00803947
Vues:
21
>I'm starting to work more with XML and wanted to make sure I'm not missing something.
>
>I have an XML document like
><Customer>
>   <Name>Chuck</Name>
>   <State>MN</State>
></Customer>
>I load it using Msxml2.DOMDocument but it seems that I have to parse it by skipping every node. I would think there would be something like a collection object where I could put oXML.Item('Customer').Item('Name').Text but item always wants a number. So if I don't know what order the nodes are coming in I have to loop though them to see if nodename = "Customer" then loop though those childern to find the nodename that matches "Name". It just seems like there should be an better way.

I just reposted so you can see the XML.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform