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

  • 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" ?>
    <resource_name>John Doe</resource_name>

Open in new window

1 Solution
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

2)There is an control named XmlWebserver control to complete your task.
  Read this article for your reference

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