469,631 Members | 1,074 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

Subject: How to modify an XML file and save it back?

Sorry about the last post. Made a mistake by clicking on the Post before
finishing...

I have a task that seems easy but I still don't have a symple way to do it:

I need to read in an exasting XML file, find a certain node using XPath,
change the value of the node, then save it back to the file. So, as you see,
only the value of one entry needs to be changed. Everything else will be kept
the same.

I know how to load the XML file and find the node specified by the XPath (I
load the XML into a XMLDocument and use the XPath search for the node). I
then changed the value of the node. But then how do I save the modified XML
back?

Am I completly wrong by approching it this way? How should I do this?

Thanks

Feng
Nov 21 '05 #1
0 843

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Susan | last post: by
3 posts views Thread by Maileen | last post: by
1 post views Thread by harriegovin | last post: by
2 posts views Thread by =?Utf-8?B?YW5rMmdv?= | last post: by
8 posts views Thread by mcserret | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.