Incorrect line number reported if higher than 65535 in some cases
libxml2 internally stores the line number of the nodes as a two bytes unsigned integer, but has the possibility to set in parser context options XML_PARSE_BIG_LINES and in that case the line number is stored in text PSVI field. This happens only for text nodes, but not in other places.
I have created this patch which enhances tree.c:xmlGetLineNoInternal and SAX2.c:xmlSAX2StartElementNs so that if XML_PARSE_BIG_LINES is set then the line number is provided just like for text nodes.
If this patch is correct, could it be integrated into future libxml2 releases?