S
sk
How can I validate the element within the a simgle element?
I tried to make a schema like the following, but seems the schema
is not right.
xml doc
<id0001>
<id0002>hello</id0002>
</id0001>
schema i am trying to make
<xs:element name="id0001">
<xs:simpleType>
<xs:sequence>
<xs:element name="id0002">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:simpleType>
</xs:element>
</xs:schema>
I tried to make a schema like the following, but seems the schema
is not right.
xml doc
<id0001>
<id0002>hello</id0002>
</id0001>
schema i am trying to make
<xs:element name="id0001">
<xs:simpleType>
<xs:sequence>
<xs:element name="id0002">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:simpleType>
</xs:element>
</xs:schema>