The following valid XSD schema can NOT be successfully read by the
ReadXMLSchema method of the DataSet object - it errors out with a
"NonEmptySt ring not defined" error. This schema is more complex than a
plain vanilla schema, but doesn't strike me as obscenely complex.
Are there general rules for what can an can not be mapped between any XSD
schema & a .net DataSet?
Thanks
<?xml version="1.0" encoding="UTF-8" standalone="yes "?>
-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Wheels Inc
(Wheels Inc) -->
<!--W3C Schema generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified" >
<xs:element name="Collision TemplateA1">
<xs:complexType >
<xs:sequence>
<xs:element ref="FullName"/>
<xs:element ref="Hometown"/>
<xs:element ref="Province"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FullName" >
<xs:complexType >
<xs:simpleConte nt>
<xs:extension base="NonEmptyS tring">
<xs:attribute name="from" fixed="/LR/Deeper/IsDriverInsane"/>
<xs:attribute name="condition al" fixed="yes"/>
<xs:attribute name="source1" fixed="/LR/Deeper/Name"/>
<xs:attribute name="source2" fixed="/LR/Name"/>
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
<xs:element name="Hometown" >
<xs:complexType >
<xs:simpleConte nt>
<xs:extension base="NonEmptyS tring">
<xs:attribute name="from" type="xs:string " fixed="/LR/City"/>
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
<xs:element name="Province" >
<xs:complexType >
<xs:simpleConte nt>
<xs:extension base="NonEmptyS tring">
<xs:attribute name="from" type="xs:string " fixed="/LR/State"/>
</xs:extension>
</xs:simpleConten t>
</xs:complexType>
</xs:element>
<xs:simpleTyp e name="NonEmptyS tring">
<xs:restricti on base="xs:string ">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>