Re: [xml] Line number value limit



On Thu, Nov 12, 2009 at 10:49 AM, Stefan Behnel <stefan_ml 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 limitation.

That turns out not to be the case, at least when calling
xmlGetLastError. Line numbers never go above 65535 in xmlLastError (at
least when using SAX2), even though the member in xmlError is int.

-- 
Life is complex, with real and imaginary parts



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]