Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I retrieve a specific tag's value using XMLADAPTE
Message
 
To
02/02/2006 09:17:47
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01092803
Message ID:
01094318
Views:
16
>I've created an XMLADAPTER object and loaded some XML into it. I need to get the value of a specific tag. The tag's name is unique in the XML. How can this be done? I've looked at the IXMLDOMElement's getElementsByTagName and selectSingleNode and neither work for me.
>
>Help
>Mike

Check this meesage - it may help (message #1070080 ).

There is also a feature called XPATH:
oChild.parentNode.selectSingleNode("*[local-name()='title']").text
XPATH can be used to great collections of nodes with similar names - look for specific node names under a branch - or look for nodes with a specific value.

If your xml structure is "fixed" you can probably "wring" it out quickly by just using the same point.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform