Source: XMLScanner.cpp
XML prolog : chUnicodeMarker + <?xml version="1.0" encoding="UTF-16" ?>
curReader->getColumnNumber() returned 8, so the following code failed and
error was emitted.
Please see your code, whether you consider the Unicode marker when
determining the column number.
if (checkXMLDecl(true))
{
// There shall be at lease --ONE-- space in between
// the tag '<?xml' and the VersionInfo.
//
//
// If we are not at line 1, col 6, then the decl was
not
// the first text, so its invalid.
//
const XMLReader* curReader =
fReaderMgr.getCurrentReader();
if ((curReader->getLineNumber() != 1)
|| (curReader->getColumnNumber() != 7))
{
emitError(XMLErrs::XMLDeclMustBeFirst);
}
scanXMLDecl(Decl_XML);
}
Peter A. Volchek
Software Engineer
Metis International, Inc.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]