Re: [xml] xmllint schema validation reports line numbers above 65535 incorrectly (was: Re: Important: possible incompatible changes ahead for 2.9.0 !)



On Mon, Aug 13, 2012 at 02:20:12PM +0200, Johan Corveleyn wrote:
On Mon, Aug 13, 2012 at 6:54 AM, Daniel Veillard <veillard redhat com> wrote:
[...]
but that doesn't fix it for the reader or SAX mode, I would have
to investigate further

thinkpad:~/XML -> xmllint --stream --noout --schema test_schema.xsd
test_xml.xml
Schemas validity error : Element 'level1': Missing child element(s).
Expected is ( level2 ).
test_xml.xml fails to validate
thinkpad:~/XML -> xmllint --sax --noout --schema test_schema.xsd
test_xml.xmlSchemas validity error : Element 'level1': Missing child
element(s). Expected is ( level2 ).
test_xml.xml fails to validate
thinkpad:~/XML ->

Yeah, having those fixed would be nice too of course. But having
already one possible way to get validation with the correct line
numbers is very much appreciated.

  Should be fixed now in git too:

http://git.gnome.org/browse/libxml2/commit/?id=97fa5b3c8f3fe6ff79123ab43ed6b846fd1dd6dd

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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