Re: [xml] Line number value limit
- From: Csaba Raduly <rcsaba gmail com>
- To: xml gnome org
- Subject: Re: [xml] Line number value limit
- Date: Thu, 12 Nov 2009 12:19:39 +0100
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]