Chris,
The DTDScanner has a similar problem as well, and the fix to both
shall be available in the next nightly build and please verify, thanks.
Regards,
Peiyong Zhang
____________________________________________
XML Parsers Development
IBM Toronto Laboratory email: [EMAIL PROTECTED]
Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
Chris Hill <[EMAIL PROTECTED]> on 05/30/2001 05:24:24 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Bug in scanner
(Bugzilla appears to be down)
In XMLScanner::scanProlog(), to detect an xml decl, the following code is
used:
fReaderMgr.skippedString(XMLUni::fgXMLDeclStringSpace)
I believe this is incorrect. If there is a whitespace other than the space
character 0x20 following "<?xml", it will not be recognized as the
beginning of an xml decl. (The other valid white space characters are 0x9
0xA 0xD)
A test case would be (with no trailing space on the first line)
<?xml
version='1.0'?><a/>
XMLUni::fgXMLDeclStringSpace seems like a dangerous thing to have around, I
don't know if it is used anywhere else, but it probably shouldn't be.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]