I'm new to C# and have been working on learning database's. Currently I'm trying to import data from a XML document that has items stored as follows:
<CityData>
<City>Ada</City>
<County>Olmsted</County>
<AreaCode>507</AreaCode>
<Founded>1900</Founded>
<CityWebSite>www.adacity.com</CityWebSite>
<Population>1200</Population>
<Zipcode>56996</Zipcode>
<ZipcodeMax>57656</ZipcodeMax>
</CityData>
I'm trying to save each data collection to a different row in a SQL Express database. I've been able to store other information in the database, I just don't know how to do this with a XML document. The database is stored locally on my machine along with the C# program I'm writing. I have a new table with columns named and ordered like the XML documents schema. The tutorials I'm finding online are for .asp programs. Has anyone ever done this? This is a C# Forms Program.