[xml] What's wrong with this schema?




Hi,

I'm having a problem loading this simple schema, the xmlSchemaParse()
call fails:

<?xml version="1.0" encoding="UTF-8"?>
   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
              xmlns="http://myns";
              targetNamespace="http://myns";
              elementFormDefault="qualified"
              attributeFormDefault="unqualified"
              xml:lang="en">

     <!--
       Type for <data> element
       -->
     <xs:complexType name="dataInlineType">
       <xs:complexContent>
         <xs:extension base="xs:anyType"/>
       </xs:complexContent>
     </xs:complexType>

   </xs:schema>


The err is:

./x.xsd:12: element complexType: Schemas parser error : complex type
'dataInlineType': The content type must be the simple base type.


Is that the "anyType" is not allowed here?

Thanks,
Yong Chen



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