Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to parse an XML file in VFP6
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01105029
Message ID:
01105747
Views:
22
Hi Viv

>CR,LF and some other characters such as SPACE are, except as element content, irrelevant in XML - they're just used to make it more 'human-readable'. To be 'well-formed' XML must just follow a few basic rules (e.g. matched and properly nested element tags). FWIW, if you view an XML file in IE it uses a default XSL translation to add this type of formatting (and build the neat 'treeview' appearance).

Oh, thanks for the explanation. In my basic study of context.xml file of OOo, apart from other elements, it has a set of < style > < / style > where each is given it's font and weight, they are all at the very top of the file. These styles are then later used in contents. This is much different than what Marcia has given in her example, where the XML was more in record formation and the XSL was formatting them for usage. How can content.xml kind of file be loaded except for manually (FOPEN(), FREAD(), ...) finding start and ends of each tag and populating related VFP tables / arrays?

Please advise.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform