Forum Moderators: open

Message Too Old, No Replies

Editing node value

         

kadnan

9:25 am on Apr 9, 2003 (gmt 0)

10+ Year Member



Hello
I am using DOM to access XML..i am having a problem to edit a node value
forexample i have xml like

<person>
<name>Smith</name>
</person>
i want to change "Smith" to "Jhon"..how can i do it?
help me please..i am newbie in xml vb/asp stuff

thanks

Xoc

11:25 am on Apr 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to load the file into the document object model (DOM). Then you have to find the node within the DOM using an XPath query. After you find the node, you change its value. Then you have to write the entire DOM back out to the XML file.

If you need help with syntax, write back.

kadnan

6:27 pm on Apr 10, 2003 (gmt 0)

10+ Year Member



Thanks
but i got the solution,thanks again:)