Skip to content

Instantly share code, notes, and snippets.

@freretuc
Created November 9, 2011 07:31
Show Gist options
  • Save freretuc/1350714 to your computer and use it in GitHub Desktop.
Save freretuc/1350714 to your computer and use it in GitHub Desktop.
Create XML file with vb.net
Imports System.Xml
Dim XmlDoc As XmlDocument = New XmlDocument()
XmlDoc.LoadXml("<config></config>")
Dim eName As XmlElement
eName = XmlDoc.CreateElement("name")
eName.InnerText = "blablabla"
XmlDoc.DocumentElement.AppendChild(eName)
XmlDoc.Save("C:\newfile.xml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment