Best way to import XML Files

Fairlight fairlite at fairlite.com
Tue Jun 15 11:49:01 PDT 2004


Only Kenneth Brody would say something like:
> George Simon wrote:
> > 
> > That is what I was going to try to do, but it seemed (still does) like a lot
> > of work.
> [...]
> > -----Original Message-----
> > From: filepro-list-bounces at lists.celestial.com
> > [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Kenneth Brody
> [...]
> > You could try IMPORT ASCII, with ">" as the record delimiter.  This would
> > at least give you one tag at a time.  You would still have to parse each
> > chunk, but this would break it up into managable chunks.
> 
> Well, you say that there are no record delimiters, so you can't use
> something like READLINE() to read a line at a time.  You could use
> READ() to get a certain-sized chunk at a time, but then you still
> have to break it into "logical" chunks after that.  My suggestion
> simplifies it one step by making sure that you don't get more than
> one tag at a time.

If you had a '>' in a CDATA block, I think you're going to blow your import
logic unless you do some careful checking.  This may or may not apply, as
use of CDATA would not necessarily be inherent in some cases.  In my case,
it never would have worked "raw" like that.

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