[ expat-Patches-461763 ] BOM and ExternalSubset
noreply@sourceforge.net
noreply@sourceforge.net
Fri Sep 14 21:37:02 2001
Patches item #461763, was opened at 2001-09-14 21:36
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=461763&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gilles Marichal (gilou)
Assigned to: Nobody/Anonymous (nobody)
Summary: BOM and ExternalSubset
Initial Comment:
Hello,
Expat parsing failed when the file to parse had an
external subset starting with a BOM.
Adding the following two lines at the start of
function externalSubset0 in xmlrole.c fixes the
problem:
if (tok == XML_TOK_BOM)
return XML_ROLE_NONE;
Note: while correcting that problem, I looked in the
xmlrole.c file the others parts of the code handling
the XML_TOK_BOM token. I'd like to know the rationale
for handling it in prolog1 (wouldn't it always be
handled in prolog0 only?).
G. Marichal
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=461763&group_id=10127