Editing an XML File

RobinTibbs

Member
Joined
Nov 8, 2006
Messages
18
Programming Experience
Beginner
am using the following code to edit an XML file:

VB.NET:
Dim xDoc As New Xml.XmlDocument
xDoc.Load("prefs.xml")
Dim prefs As Xml.XmlNode = xDoc.SelectSingleNode("/Preferences")
prefs(preference).InnerText = value

now, no exception is being thrown or any errors, but the file does not seem to be being edited
 
Back
Top