Here's a small example, from a thread I posted a day or two ago:
VB Code:
Dim XMLDoc As New XmlDocument Dim XMLN As XmlNode XMLDoc.Load(Server.MapPath("family.xml")) Dim XMLNL As XmlNodeList = XMLDoc.SelectNodes("//family/name") For Each XMLN In XMLNL If XMLN.ChildNodes(0).InnerText.ToUpper = "Alfred E".ToUpper Then XMLN.ChildNodes(0).InnerText = "What me worry" End If Next XMLDoc.Save(Server.MapPath("family.xml"))
Does this help?




Reply With Quote