Why is the line number in xmlNode limited to an unsigned short ?
Doesn't libxml2 handle XML files with more than 65535 lines?
Also, the code which performs the truncation of the value in SAX2.c
(line 1601) is wrong.
if (ctxt-linenumbers) {
if (ctxt-input != NULL) {
if
Hi,
Csaba Raduly, 12.11.2009 10:29:
Why is the line number in xmlNode limited to an unsigned short ?
Because it's a trade-off between space and usefulness. Note that the parser
reports line numbers without that limitation. Only the xmlNode struct
restricts it.
This is a FAQ, BTW. You can look
On Thu, Nov 12, 2009 at 10:49 AM, Stefan Behnel stefan...@behnel.de wrote:
Hi,
Csaba Raduly, 12.11.2009 10:29:
Why is the line number in xmlNode limited to an unsigned short ?
Because it's a trade-off between space and usefulness. Note that the parser
reports line numbers without that