Best way to import XML Files

Kenneth Brody kenbrody at bestweb.net
Fri Jun 18 18:00:06 PDT 2004


Fairlight wrote:
> 
> >From inside the gravity well of a singularity, George Simon shouted:
> > This is basically the same way I did it.
> > I just finished writing the code and it seems to work just fine.
> > I discovered that filePro will let you use graphic characters as field and
> > record delimiters, so I used chr("249") which is a period in the middle of
> > the line ( · ) as both my field and record delimiters.
> 
> I'm not sure how wise that is.  I'm no expert on XML, but since there's
> nothing you can put in a DTD that allows for those extra characters, and
> since it's not in a comment, it seems like it -should- result in a parser
> saying it's not a well-structured file.
[...]
> It just doesn't -seem- like a good idea to have those extra non-XML
> character out there, uncommented.  I'm not sure every parser will be so
> friendly about it.  Whitespace is irrelevant, but that's -not- whitespace.
> 
> Would someone with more experience with XML and various parsers care to
> comment on the wiseness of the cited methodology?

I think you missed his point...  He is _importing_ the file into filePro,
and telling it that chr("249") is the delimiter, under the assumption
that that particular character will _not_ appear in the file.

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list