[xml] Line number value limit

2009-11-12 Thread Csaba Raduly
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

Re: [xml] Line number value limit

2009-11-12 Thread Stefan Behnel
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

Re: [xml] Line number value limit

2009-11-12 Thread Csaba Raduly
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

[xml] LibXML2 digitally signed?

2009-11-12 Thread Michael Shang
Hi   I would like to know where I can find a version of the LibXML2library with the 32bits and 64bits dlls digitally signed? The one I downloaded on the website did not contain digital signature.   Does the current license allows any company that use these dlls to digitally sign them?   Thank

[xml] Regarding libxml schema validation

2009-11-12 Thread Sudhindra Kulkarni
Hi, I have a problem validating a xml generated from a schema which contains an element having xs:any namespace=##other /. When I try to include a element from another schema I get an error No matching global element declaration available but demanded by the strict wildcard I have included all