I have this Generic XML file, I want to parse it so I can create a SQL server table according to the XML data :
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Student">
<xs:complexType>
<xs:sequence>
<xs:element name="Id" type="xs:integer"/>
<xs:element name="Name" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I want to recover the following data:
Student,
Id / integer
Name / String
City / String
Student will be the name of the table, and Id, Name and City are the columns. All I need is how to parse the XML file and recover the data.