Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Parsing
Message
From
25/06/2003 14:48:53
 
 
To
25/06/2003 14:48:07
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
00803945
Message ID:
00803947
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform