Posted on: 7/21/2014 1:36:43 PM | Views : 382

Dear all,
I have the below .xml file which i want to save the various values into a database. I query the file using the below code also.
Can anyone help me as to how to save this into a database.
Thanks in advance
XML file
<Models> <Model Name="BMW" Year="1980"> <Field Type="single" front="Red" back="Blue"></Field> <Field Type="double" front="Green" back="White"></Field> </Model> <Model Name="BENZ" Year="1970" > <Field Type="single" front="Red" back="Blue"></Field> <Field Type="double" front="Red" back="Blue"></Field> </Model> </Models> Code
XDocument xmlDoc = XDocument.Load(@"H:\ProjectsTest\model ...

Go to the complete details ...