filepro & XML

Fairlight fairlite at fairlite.com
Wed Jun 2 16:17:00 PDT 2004


The honourable and venerable Enrique Arredondo spoke thus:
> What's the easiest way of creating an XML file from filepro ? Right now 
> I'm using a full page report with 1000 lines so I can create each tag that 
> I need to, but I'm half way and this is overkill, assuming that everytime 
> they add more tags I'll be redoing this!.
> 
> So I was thinking of creating filepro files where the field names are the 
> actual names of the XML tags and when printing the output use 
> "<{@fieldname{>"*1"</{@fieldname{">"
> 
> What do you think ?

I think I'd just throw the lookup into a loop and use OPEN() and WRITE() to
handle the file I/O, and write the necessary strings.

Creating XML from fP (or anything) is trivial.  I've heard vague rumours
that there might be not only a native XML parser but an XML creator.  I
can see a lot less value in the creator.  It could make exporting slightly
easier, but it's really pretty trivial as it is.

Now parsing -in-?  That's the harder bit.  Significantly.  But that's not
what you want to do.  What you're after is nothing harder than opening a
file and writing whatever you need to write.

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list