<xs:element name="BeginDate" type="xs:string">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d{8}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
In the XML I gave
<BeginDate>20100721</BeginDate>
but it returns an error … there is a problem with the code here .. but i am using a validated code 🙁
So I’m a bit blocked
You have defined the content type twice. You have:
1) attribute
typeon<xs:element>2)
<xs:simpleType>block as a child of<xs:element>.You can’t have both. In this case, you don’t need the
typeattribute.