Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML Parsing
Message
De
26/06/2003 09:53:11
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
 
À
25/06/2003 14:48:53
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Divers
Thread ID:
00803945
Message ID:
00804172
Vues:
36
Chuck,

If you need a specific node, try XPath. Assuming your real document looks something like this:
<Customers>
    <Customer>
        <Name>Chuck</Name>
        <State>MN</State>
    </Customer>
    <Customer>
        <Name>Bob</Name>
        <State>TX</State>
    </Customer>
</Customers>
and your DOMDocument is named oDoc:

oCustomerNode = oDoc.docmentElement.selectSingleNode("Customer[Name='Chuck']")

XPath can be intimidating when you first start using it, but it can be a very useful tool.

HTH
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform