[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1387
  • Last Modified:

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

0
szadroga
Asked:
szadroga
1 Solution
 
anipeddiCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now