Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I retrieve a specific tag's value using XMLADAPTE
Message
 
À
02/02/2006 09:17:47
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01092803
Message ID:
01094318
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform