I am new to web programming and Visual Web Developer. I have made a page that prompts the user for input and then this input replaces the prompts using InnerHTML accesses. Thus the table can only be edited the first time it is displayed. It is the final, edited version of the HTML that I want others to be able to access. So I need a way to write the edits out to an XML file. I understand that this can be done with LINQ but I haven’t figured out how to do it.
Any advice is appreciated.
Regards.
Here’s an example I found online at: http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx. You should be able to figure it out if you compare the LINQ to XML code with the file output.
Code:
doc.Save(@”c:\sample.xml”);
file: