xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Ignatyuk <igor_ignati...@hotmail.com>
Subject SAXParseException, wrong line and column numbers
Date Wed, 16 Sep 2009 13:16:20 GMT

I am parsing the next file that is encoded as Windows-1252:

<?xml version="1.0" ?>
<test>ä</test>

The implicit XML encoding is UTF-8, therefore it is correct that I get a
parsing error, but SAXParseException::getLineNumber and
SAXParseException::getColumnNumber return wrong values:

line 1, column 23: invalid byte '<' at position 2 of a 3-byte sequence

IMHO the line number should be 2, the column number - 8 (position of the
character '<') or 7 (position of the character 'ä').

-- 
View this message in context: http://www.nabble.com/SAXParseException%2C-wrong-line-and-column-numbers-tp25472166p25472166.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Mime
View raw message