G
gr8brain
I've done some googling on this one, but I'm not sure how to phrase
the search. Any help is greatly appreciated.
The problem is I have an xml file coming from a non-.Net source that
I'm trying to load into a strongly typed DataSet. I've created the
schema and then the DataSet from there. Here's an exampe of the XSD
(with the actual names/structure changed of course):
snip
<xs:element name="ROOT_ELEMENT">
<xs:complexType>
<xs:sequence>
<xs:element name="COMPLEX_TYPE_ELEMENT_A"
type="SOME_COMPLEX_TYPE" minOccurs="1" />
<xs:element name="SOME_TEXT_DATA" type="xs:string"
minOccurs="1" />
<xs:element name="COMPLEXT_TYPE_ELEMENT_B"
type="ANOTHER_COMPLEX_TYPE" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
snip
When this is converted into a Strongly typed DataSet, the
"SOME_TEXT_DATA" element goes away. VS even removes it from the XSD
file.
Is there a way to handle this? Other than editing the XML to put the
text data as child to another complex type? Could I add a property to
the inherited DataSet that is somehow loaded by the XML?
TIA
Brian
the search. Any help is greatly appreciated.
The problem is I have an xml file coming from a non-.Net source that
I'm trying to load into a strongly typed DataSet. I've created the
schema and then the DataSet from there. Here's an exampe of the XSD
(with the actual names/structure changed of course):
snip
<xs:element name="ROOT_ELEMENT">
<xs:complexType>
<xs:sequence>
<xs:element name="COMPLEX_TYPE_ELEMENT_A"
type="SOME_COMPLEX_TYPE" minOccurs="1" />
<xs:element name="SOME_TEXT_DATA" type="xs:string"
minOccurs="1" />
<xs:element name="COMPLEXT_TYPE_ELEMENT_B"
type="ANOTHER_COMPLEX_TYPE" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
snip
When this is converted into a Strongly typed DataSet, the
"SOME_TEXT_DATA" element goes away. VS even removes it from the XSD
file.
Is there a way to handle this? Other than editing the XML to put the
text data as child to another complex type? Could I add a property to
the inherited DataSet that is somehow loaded by the XML?
TIA
Brian