edit XML File

mcerk

Well-known member
Joined
Nov 1, 2004
Messages
78
Hi I have an XM in this format:
Code:
<?xml version="1.0" encoding="utf-8" ?> 
<Page>
	<mj>Value1</mj>
	<uv>Value2</uv>
	<pa>Value3</pa>
</Page>


How can I edit this values?


tx in advance.

Matej
 
thanx

Code:
  Private _doc As New XmlDocument

  _doc.ChildNodes(1).ChildNodes(0).InnerText = TextBox1.Text
  _doc.ChildNodes(1).ChildNodes(1).InnerText = TextBox2.Text
  _doc.ChildNodes(1).ChildNodes(2).InnerText = TextBox3.Text

  _doc.Save(Application.StartupPath & "\test.xml")
 
Back
Top