Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Parsing
Message
From
26/06/2003 09:53:11
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
25/06/2003 14:48:53
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
00803945
Message ID:
00804172
Views:
35
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform