[fpc-pascal] DOM stumbles upon DOCTYPE

Marc Santhoff M.Santhoff at t-online.de
Sun Dec 2 21:08:49 CET 2007


Hi,

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?

TIA,
Marc





More information about the fpc-pascal mailing list