Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Parsing error
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00658658
Message ID:
00658821
Views:
37
David
Thanks for your answer. I see i'll have to use XMLDOM to read the nodes, since this xml file is provided to a web service i wrote by an external company, and i don't think they're using something as flexible as VFP...:-)

Cheers,
Jaime


>Jaime,
>
>I'm pretty sure that XMLToCursor() can not properly deal with your hierarchical document. Your elements pick_up, drop_off and additional_options are all composed of elements then you don't have a flat cursor. One reason is that these might be multiply occuring elements.
>
>If you have control of the DTD that governs this and the three elements do not have multiple values you could flatten this part of your hierarchy out of the XML.
>
>If you can't or don't want to remove the hierarchy, you could process it as 4 documents, after pulling out the three subdocuments using strextract().
>
>You can also use the XMLDOM to give you node by node access to the document.
>
>Any of the above options are better than wrigint your own XML parser. Composing XML documents is easy, reading them is a lot tougher.
>
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform