Stefan Lenselink wrote: > When loading a DocBook XML file with the latest version of XXE I get a parse > error like the following: > > Parse error in <Fullpath + filename>, line X, column 0: syntax error > > I looked at the clear text version, and at line X the <?xml tag starts. So > for example when X is 3 the first two lines are left blank. When I remove > the lines a don't get the parse error, when I add a few extra lines above > the <?xml tag I get the parse error with a different value of X offcourse. > > I tested this "Bug" on 2.4p1 and the 2.4 version in both versions the "Bug" > acourse. > > Is this really a Bug or just a small inconvenicance?
This is not a bug nor an inconvenience. Your XML document is simply not well-formed. Excerpts of http://www.w3.org/TR/REC-xml [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' Note that before XMLDecl? there is no S. XML is not a loose format and XXE uses a very picky parser (James Clark's XP).

