xml schema help
OK, I'm a bit of a newbie to xml, this is what I want to do:
<element1 Type="2" Value="1">
<![CDATA[.......]]>
</element1 >
Now, I have to have attribute tags in element1 as well as string type restrictions:
<xs:attribute name="Type" use="required" type="TicketType" />
<xs:attribute name="Value" use="required" type="xs:positiveInteger" />
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3000" />
</xs:restriction>
</xs:simpleType>
How do I construct this element schema?
Thanks
|