Created
November 9, 2011 07:31
-
-
Save freretuc/1350714 to your computer and use it in GitHub Desktop.
Create XML file with vb.net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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