Question

Locked

insertion in xml file

By amolsy ·
i have an xml file name as saved.xml
<?xml version="1.0"?>
<doc>
<Employee>
<keyName>amol
</keyName>
<Keyvalue>223
</Keyvalue>
</Employee>
</doc>
whwn i run my application and enter keyname=manish and keyvalue=200 through textboxex want following insetion in my xml file
<?xml version="1.0"?>
<doc>
<Employee>
<keyName>amol
</keyName>
<Keyvalue>223
</Keyvalue>
</Employee>
<Employee>
<keyName>manish
</keyName>
<Keyvalue>22o
</Keyvalue>
</Employee>

</doc>
my application is in vb6.0
please help me its argent

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

Clarifications

Collapse -
by robo_dev

Is there a particular question, problem, or error you get? If so, paste a code snippet (not the whole program) and maybe somebody here can help.

It's been a long time since I've had to do homework for school, but I seem to recall that I learned the most when I did the work myself.

All Answers

Collapse -

So you want to create a node?

by Slayer_ In reply to insertion in xml file

Dim oElement as Object = XMLObject.CreateElement("Test")
oElement.text="value"

XMLObject.SelectSingleNode("RootNode").addchild(oElement)

XMLObject.Save("Filepath")

Collapse -

Reponse To Answer

by amolsy In reply to So you want to create a n ...

Sir its not working for me,tell another answer

Collapse -

Reponse To Answer

by amolsy In reply to So you want to create a n ...

Now I got the answer thank you very much

Back to Software Forum
5 total posts (Page 1 of 1)  

Software Forums