I have an XML file where all to elements for the data are contained in CDATA sections. I have a schema created that is working right now although it is pretty dumbed down. I have a need now to insert into the schema a restriction on the length of the values in the different elements.
The xml looks like this;
Expand|Select|Wrap|Line Numbers
- <DOC_CAT Attribute="Y"><![CDATA[AR]]></DOC_CAT>
Expand|Select|Wrap|Line Numbers
- <xs:element name="DOC_CAT">
- <xs:complexType mixed="true">
- <xs:attribute name="Attribute" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="Y"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
How can I apply a length restriction against the value in the cdata section?
Thanks for your help,
Doug Harding
State of Utah