Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - xml manipulation in vb.net [Thread Next] Re: xml manipulation in vb.netTo: NULL Date: 8/2/2004 4:50:00 PM Sure. Something like this.
Imports System.Xml
Module Module1
Sub Main()
Dim doc As New XmlDocument
doc.Load("c:/x.xml")
Dim node As XmlElement
node = doc.SelectSingleNode("a/b[.='1']")
If (TypeOf (node) Is XmlElement) Then
node.InnerText = "4"
Console.WriteLine(node.OuterXml)
Console.Read()
End If
End Sub
End Module
"Kenny" <drpcken@m...> wrote in message
news:tPgPc.101744$fv.8822@f......
> I'm trying to load an xml file in my vb.net and search for a value, when
> its found, I want to replace it with another value that I provide.
>
> Can this be done??
>
> Thanks!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
