Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Native XML parser for Fox6
Message
De
23/01/2004 04:59:18
Salminen Jukka
Js Software Systems
Vaasa, Finlande
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00869647
Message ID:
00869790
Vues:
12
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform