By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,902 Members | 1,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,902 IT Pros & Developers. It's quick & easy.

Modify an xml file in asp.net

P: 2
I have an xml file.
I want to edit the contents of that file in asp.net

The xml file is:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Persons>
  3.   <Person>
  4.     <Name>karthika</Name>
  5.     <City>Chennai</City>
  6.     <Age>22</Age>
  7.   </Person>
  8.   <Person>
  9.     <Name>dhanakumar</Name>
  10.     <City>Hyderabad</City>
  11.     <Age>53</Age>
  12.   </Person>
  13.   <Person>
  14.     <Name>Ezhil</Name>
  15.     <City>Banglore</City>
  16.     <Age>33</Age>
  17.   </Person>
  18.   <Person>
  19.     <Name>kevin</Name>
  20.     <City>Coimbatore</City>
  21.     <Age>23</Age>
  22.   </Person>
  23. </Persons>
I want to retrieve,edit,modify and save the xml data of an xml file in asp.net.
Mar 20 '12 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
there's a complete class called XMLDocument; here is a brief description in MSDN.
Mar 20 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.