[ http://nagoya.apache.org/jira/browse/XERCESC-1187?page=history ]
Alberto Massari updated XERCESC-1187:
-------------------------------------
Priority: Major
> Xerces SAX2 parser can not skip xs:any if xsi:nil is used in xml
> ----------------------------------------------------------------
>
> Key: XERCESC-1187
> URL: http://nagoya.apache.org/jira/browse/XERCESC-1187
> Project: Xerces-C++
> Type: Bug
> Components: Validating Parser (Schema) (Xerces 1.5 or up only)
> Versions: 2.4.0
> Environment: Operating System: Solaris
> Platform: Sun
> Reporter: Andy Ding
> Assignee: Xerces-C Developers Mailing List
>
> We're using Xerces-C++ version 2.4.0. Now we found an error about xerces SAX2
> parser can not skip xs:any type if "xsi:nil=true" is used in xml.
> As you can see, in following "note.xml", the element "school" should be
> validated by another schema file defining this element, not by the schema file
> defining "xs:any".
> The schema example:
> <?xml version="1.0"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.w3schools.com"
> elementFormDefault="qualified"
> targetNamespace="http://www.w3schools.com">
> <xs:element name="note">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="to" type="xs:string"/>
> <xs:element name="from" type="xs:string"/>
> <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
> The xml example:
> <?xml version="1.0"?>
> <note xmlns="http://www.w3schools.com"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.w3schools.com note.xsd">
> <to>Tove</to>
> <from>Jani</from>
> <school>
> <student xsi:nil="true"/>
> </school>
> </note>
> The error message:
> Error at file 10000, line 15, char 8
> Message: Element note with attribute xsi:nil=true must be empty
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]