Read/Write to XML in C#

I am new to C#/XML and I am trying to read/update (write to) an XML file with C# with a ASP.NET webpage.  I have developed parts of my webpage and the XML file.  I am trying to figure how i can display the info from the XML file onto my page and also have an Add button on the webpage that will add information to the XML file.

Here is my current XML file
<?xml version="1.0" encoding="utf-8" ?>
<submissions>  
  <submission>
    <resource_name>John Doe</resource_name>
    <resource_type>Manager</resource_type>
    <location>USA</location>
    <start_date>01/01/2008</start_date>
    <end_date>12/31/2008</end_date>
    <hours>40</hours>
    <skill_level>Advanced</skill_level>
    <percent_available>50</percent_available>
    <comments>n/a</comments>
  </submission>
</submissions>

Open in new window

szadrogaAsked:
Who is Participating?
 
anipeddiConnect With a Mentor Commented:
I can sugget you a couple of ways to do that.
1)Using Data grid(or Grid view control)
   you could edit the grid to manipulate the xml file.
Pls read this article for complete steps
http://aspnet.4guysfromrolla.com/articles/112603-1.aspx

2)There is an control named XmlWebserver control to complete your task.
  Read this article for your reference
http://support.microsoft.com/kb/315906
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.