The Current column is inaccurate in the characters callback when parsing long non-ascii xml element
In xmlParseCharDataComplex
function in parser.c
, if the element content is long (>XML_PARSER_BIG_BUFFER_SIZE
), then the function will split the content and then call ctxt->sax->characters
method (Line 4603). But the column index is not moved before characters
callback, so, it will be wrong (real value - 1
) if I want to get the current column in the callback.
I think we should move the cursor before calling characters
callback.