Methodology I have used in the past is as follows:
Load the XML file into an System.XML.XMLDocument Object.
Create an System.Data.SqlConnection
Create an System.Data.SqlCommand
Depending on how you want to put the data into the database use either a Embedded SQL statement or call a stored procedure
Loop through the XML elements / nodes using a "for" or "foreach" loop passing the data from the XMLNodes Attributes to the SqlCommand.Parameters and finally calling the SqlCommand.ExecuteNonQuery() member to execute the SQL Statement.
This is the basic methodology - code examples can be found at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.