On Thu, Feb 7, 2013 at 4:47 PM, Thomas Gamper wrote: > Hi! > > I ran into issues with libxml2 xml validation with schemas as soon as i > started using the xsi:nil attribute. Attached you find a reduced version of > the schema I am using (zenotrack-pilot.xsd + all the dependencies it needs) > and two test cases: > > GetNextMessageResponse.xml which does not validate with with xmllint > (xmllint --schema zenotrack-pilot.xsd GetNextMessageResponse.xml) > GetMessagesResponse, which is extremely similar to the first testcase, but > does validate with xmllint (xmllint --schema zenotrack-pilot.xsd > GetMessagesResponse.xml) > > I did try libxml2 2.7.7, 2.7.8 and 2.9.0. I did a debug build of libxml2 > 2.9.0 on Win64 and stepped with the debugger through the code, but it is > simply to complex for me to understand what is actually going on. All I saw > was that the nil attribute was recognized as such, but later one validation > failed for reasons I do not understand. > > Probably I am not seeing the obvious, but still I would like to ask for help > if there is actually something wrong with libxml2 in this case.
It is almost certainly a bug in libxml2: I tried your files with a validator based on Xerces-C and both passed. Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml