The DataTable xml written out, produces the following xml. can anyone
show me how to extract that schema and put it in external file? the
reason for this, is that I want to apply that structure to multiple
different xml files and don't want to change the structure in each
file. thanks. I guess it would involve to putting the content from
<xs:schema to </xs:schemainto xsd file and referencing it somehow?
don't know how to do that.
<NewDataSet>
<xs:schema id="NewDataSet " xmlns="" xmlns:xs="http://www.w3.org/2001/
XMLSchema" xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata"
xmlns:msprop="u rn:schemas-microsoft-com:xml-msprop">
<xs:element name="NewDataSe t" msdata:IsDataSe t="true"
msdata:MainData Table="wg_Profi le" msdata:UseCurre ntLocale="true" >
<xs:complexType >
<xs:choice minOccurs="0" maxOccurs="unbo unded">
<xs:element name="wg_Profil e" msprop:Name="Pr ofile"
msprop:PK="Memb erID">
<xs:complexType >
<xs:sequence>
<xs:element name="DbName" type="xs:string "
minOccurs="0" />
<xs:element name="Name" type="xs:string "
minOccurs="0" />
<xs:element name="Type" type="xs:string "
minOccurs="0" />
<xs:element name="SubType" type="xs:string "
minOccurs="0" />
<xs:element name="Pos" type="xs:int" minOccurs="0" />
<xs:element name="Length" type="xs:int" default="0"
minOccurs="0" />
<xs:element name="Options" type="xs:string "
minOccurs="0" />
<xs:element name="OptionsDi rection" type="xs:string "
minOccurs="0" />
<xs:element name="InputType " type="xs:string "
minOccurs="0" />
<xs:element name="Display" type="xs:boolea n"
minOccurs="0" />
<xs:element name="Default" type="xs:string "
minOccurs="0" />
<xs:element name="Required" type="xs:boolea n"
minOccurs="0" />
<xs:element name="RequiredE rror" type="xs:boolea n"
minOccurs="0" />
<xs:element name="InvalidDa taError" type="xs:string "
minOccurs="0" />
<xs:element name="Group" type="xs:string "
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<wg_Profile>
<DbName>MemberI D</DbName>
</wg_Profile>
<wg_Profile>
<DbName>LastNam e</DbName>
</wg_Profile>
<wg_Profile>
<DbName>FirstNa me</DbName>
</wg_Profile>
<wg_Profile>
<DbName>Profile Name</DbName>
</wg_Profile>
<wg_Profile>
<DbName>Birthda y</DbName>
<Name>Birthda y MM/DD/YYYY</Name>
<SubType>Date </SubType>
<Display>true </Display>
<Default />
<Required>tru e</Required>
<InvalidDataErr or>Invalid Date MM/DD/YYYY</InvalidDataErro r>
</wg_Profile>
<wg_Profile>
<DbName>Gende r</DbName>
<Name>Gender</Name>
<Options>Male;F emale</Options>
<OptionsDirecti on>0</OptionsDirectio n>
<InputType>Radi oList</InputType>
<Display>true </Display>
<Default>Female </Default>
<Required>tru e</Required>
</wg_Profile>
<wg_Profile>
</NewDataSet>