473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Modify an xml file in asp.net

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
1 1584
kadghar
1,295 Expert 1GB
there's a complete class called XMLDocument; here is a brief description in MSDN.
Mar 20 '12 #2

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

Similar topics

1
by: IronMonk | last post by:
Hi I am trying to edit a text file... the format of which is like #####abc.conf poll somethin proto pop3 via 127.9.02.1 user "me@me.com" pass "dell" is me.nutcase preconnect "abc abc abc...
5
by: rxl124 | last post by:
Hi, quick question, how would you assign a contents to file in perl i was thinking $filename=`echo newvalue > filename`;
2
by: Bassem | last post by:
Hi Everyone. Thanks for Help. Simply I want to create a file saved in it information but in the same time when anyone try to read this information couldn't understand the contents of the file....
4
by: Abhishek | last post by:
Hi! I need to edit a text file. I need to replace a given text in the file with a new one. This text can exist anywhere in the file, so i first need to locate the text position and then edit...
8
by: John Salerno | last post by:
I figured my first step is to install the win32 extension, which I did, but I can't seem to find any documentation for it. A couple of the links on Mark Hammond's site don't seem to work. ...
11
by: Frank B. | last post by:
Is there anyway to write a folders contents to file? -Frank B.
0
by: sangitadeori | last post by:
Hai M Sangita,I m working with C#.Net on windows application,I want to know that suppose we are browsing through some folder using Opendialogbox,it is showing me only the path in the textbox.But I...
1
by: Xicon | last post by:
I am looking to create a program that is able to edit a text file that is not located within the program. This particular text file is always in the exact same location and is always named the exact...
2
by: DR | last post by:
how to search tfs by name of file or contents in file?
1
by: Primo | last post by:
I'm trying to figure out how to make some small text changes to my website, but don't have any experience doing it. I've managed to figure out that the file which needs to be changed has an SWF...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.