It's a bug of Xerces 2.7 (see https://issues.apache.org/jira/browse/XERCESC-1592); it has been fixed in Xerces 3.0

Alberto

Raymond Zhou wrote:
Hi there,
I am having a schema parsing problem using Xerces/c++ (I am using version 2.7). I have an XML schema in which a namespace abbreviation is defined as an attribute of an element inside the XM schema, and the element is not the root "schema" element. Here is an example: <xs:schema ....>
....
<xs:element name="StringArray" type="q1:ArrayOfString" xmlns:q1="http://schemas.mycompany.com/2009/02/Arrays"/ <http://schemas.mycompany.com/2009/02/Arrays%22/>>
....
</xs:schema>
Xerces seems to have problem with this, it complains can not resolve q1. If I move the namespace abbreviation definition to the schema root, then it works fine. My question is: Is this schema valid? If this is a bug in Xerces, if this is fixed?
I also attached my schemas here.
Thanks in advance! Ray



Reply via email to