I have a scenario where a user will upload an XML file, and I’d like to add the file to a table in my database. The hard part, though, is that I need to parse the file and then add some of the information to some different tables.
Every example showing how to get an XML file use a URI to get the file, but how do you get the file straight from either the database or, preferably, from the asp:FileUpload control on postback?
Take a look at the XmlDocument.Load method: