[fpc-pascal] DOM stumbles upon DOCTYPE
Marco van de Voort
marcov at stack.nl
Sun Dec 2 21:18:33 CET 2007
> I'm trying to use the unit located inn
> 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" ...
> <meta:generator>OpenOffice.org 1.1.3 (FreeBSD)</meta:generator>
> but the second line naming the document type makes the parser throw an
> 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).
More information about the fpc-pascal