D
D. Alvarado
Hello,
I am trying to validate my XML document against a schema using the
Sun Multi-Schema XML Validator. Unfortunately, my schema fails to
validate, and is failing because of this cryptic message:
element "xs:complexType" is not allowed here
which is complaining about the second line of this declaration
<xs:element name="ISBN" type="xs:string">
<xs:complexType>
<xs:attribute name="pub_status">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NYP"/>
</xs:restriction>
</xs:simpleType> </xs:attribute>
</xs:complexType>
</xs:element>
Does anyone have any advice? I would like the following XML to
validate:
<ISBN pub_status="NYP">0030518293</ISBN>
Thanks, - Dave
I am trying to validate my XML document against a schema using the
Sun Multi-Schema XML Validator. Unfortunately, my schema fails to
validate, and is failing because of this cryptic message:
element "xs:complexType" is not allowed here
which is complaining about the second line of this declaration
<xs:element name="ISBN" type="xs:string">
<xs:complexType>
<xs:attribute name="pub_status">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="NYP"/>
</xs:restriction>
</xs:simpleType> </xs:attribute>
</xs:complexType>
</xs:element>
Does anyone have any advice? I would like the following XML to
validate:
<ISBN pub_status="NYP">0030518293</ISBN>
Thanks, - Dave