Good day,
I am writing a small XML Schema validation benchmark (so far libxml2 kicks
ass of all general-purpose validating XML parsers for C/C++ that I could
get my hand on) and stumbled upon this bug in libxml2 2.6.26 (Debian
unstable). The attached test.xml, when parsed and validated with libxml2,
results in the following error:
Schemas validity error : Element '{http://www.codesynthesis.com/xmlns/xsdbench/structure}peach': This element
is not expected. Expected is one of ( {http://www.codesynthesis.com/xmlns/xsdbench/structure}apple,
{http://www.codesynthesis.com/xmlns/xsdbench/structure}orange,
{http://www.codesynthesis.com/xmlns/xsdbench/structure}mango ).
hth,
-boris
--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open Source Cross-Platform C++ XML Data Binding
Attachment:
structure.xsd
Description: Text document
Attachment:
test.xml
Description: application/xml
Attachment:
signature.asc
Description: Digital signature