[fpc-pascal] DOM stumbles upon DOCTYPE
Marc Santhoff
M.Santhoff at t-online.de
Sun Dec 2 23:34:28 CET 2007
Am Sonntag, den 02.12.2007, 21:18 +0100 schrieb Marco van de Voort:
> > I'm trying to use the unit located inn
> >
> > fpc-2.0.4/fcl/xml/dom.pp
> >
> > to parse files starting like this (shortened):
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE office:document-meta PUBLIC "-//OpenOffice.org//DTD OfficeDocument ...
> > <office:document-meta xmlns:office="http://openoffice.org/2000/office" ...
> > <office:meta>
> > <meta:generator>OpenOffice.org 1.1.3 (FreeBSD)</meta:generator>
> > ...
> >
> > but the second line naming the document type makes the parser throw an
> > exception.
> >
> > Is this an implementation issue (i.e. ToDo) or do I only have two
> > twiddle the right knob and which one is it?
>
> There were quite some post 2.0.4 fixes to these units. Please first try a
> newer version (even if you can only use 2.0.4 for some reason).
That doesn't work. Injecting the sources produces masses of errors from
makefile conflicts to missing or unknown functions and syntactical
differences.
I'll filter the line out in code.
Thank you anyways,
Marc
More information about the fpc-pascal
mailing list