Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Native XML parser for Fox6
Message
From
23/01/2004 04:59:18
Salminen Jukka
Js Software Systems
Vaasa, Finland
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00869647
Message ID:
00869790
Views:
13
>Exist?
>
>I need a parser (ie no using the MS XML parser) for use in Fox 6.I only need load a simply xml file and traverse it..no dtd or schema or validating.
>
>No, i don't can consider use a COM object, only a fox implementation..
>
>(I try with the available Fox 8 parser but i don't see how convert it back to 6)

I have used a small Java-program in applets called quick-and-dirty XML-Parser. It shouldn't be impossible to implement it in Foxpro. The sample code can be downloaded from Javaworld, Java Tip 12. It consists of two modules: a parser that reads the XML-document character by character and remembers state. Any time it finds some XML-element the parser calls another program (DocumentHandler) that takes the contents of the element and does whatever it wants with it. The parser is general, the DocumentHandler is always task specific.
Previous
Reply
Map
View

Click here to load this message in the networking platform