I need to load one of my tables in SQL server database with some data from a xsd provided.
I have my XSD, with a block as below
<xsd:simpleType name="States">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="state1"/>
<xsd:enumeration value="state2"/>
<xsd:enumeration value="state3"/>
</xsd:restriction>
</xsd:simpleType>
In my table – States, I have 2 columns StateId,StateName.
I have to load the data such as state1,state2,..etc into the StateName column of the table.
Can somebody suggest which method should I use to get this done.
I would do it as follows: