Hi i m having trouble saving xml file .
Dim mxnode As XmlNode
Dim xElem As XmlElement
Dim xDoc As New XmlDocument()
xDoc.Load("PingAddress.xml")
Me.LoadXMLFromFile()
mxnode = xDoc.SelectSingleNode("//Item[@ID='one1']")
mxnode = mxnode.ChildNodes.Item(2) ' i need to go
to the DownTime of item one1(refer below) any
' other way
xElem = CType(mxnode, XmlElement)
xElem.InnerText = Date.Now ' here i
change the date to now but when i open the xml file its
not
changed
Heres the format of the xml file
<?xml version="1.0"?>
<Ping>
<Class Name="one">
<Item ID="one1">
<Name>one 1</Name>
<Address>10.205.4.1</Address>
<DownTime>13/02/2007 20:51:08</DownTime>
</Item>
<Item ID="Two2">
<Name>Two 2</Name>
<Address>10.205.4.1</Address>
<DownTime></DownTime>
</Item>
</Class>
</Ping>