cakewalkr7
05-21-2009, 11:26 AM
I've never had to create an xsd doc before so this is my first time. I am trying to create a simple type node. In the enumeration nodes I have string values that have an "&". Since this is illegal in xml I figured I'd wrap it in cdata tags but my validator doesn't seem to like that. Here's a sample from what I've put together. Can someone tell me if it's wrong and if so, how can I make it work correctly so that I can have "&" in the values? Thanks.
<xs:simpleType name="industry">
<xs:restriction base="xs:string">
<xs:enumeration><![CDATA[Accounting]]></xs:enumeration>
<xs:enumeration><![CDATA[Advertising & Marketing Firms]]></xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="industry">
<xs:restriction base="xs:string">
<xs:enumeration><![CDATA[Accounting]]></xs:enumeration>
<xs:enumeration><![CDATA[Advertising & Marketing Firms]]></xs:enumeration>
</xs:restriction>
</xs:simpleType>