filepro & XML

Jay R. Ashworth jra at baylink.com
Wed Jun 2 13:21:57 PDT 2004


On Wed, Jun 02, 2004 at 01:20:13PM -0700, Enrique Arredondo wrote:
> 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{">"

Well, this depends a lot on the target DTD, but ISTM you'd be better
off either building the text inline with PRINT commands and a *pl
output format (or OPEN and WRITE as processing only), or generate
something that can be XSLT'd into XML, but isn't, natively.

If I understand what you're saying you're doing, I'd call that the
pessimal approach.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

        "They had engineers in my day, too."  -- Perry Vance Nelson


More information about the Filepro-list mailing list