I need to write an xml file with two starting elements how can I do this?
I have tried the following but to no avail.
Dim xmldoc As XmlDocument = New XmlDocument()
xmldoc.Load(IO.Directory.GetCurrentDirectory & "\Projects.xml")
With xmldoc.SelectSingleNode("/COMPELATION").CreateNavigator().AppendChild()
.WriteStartElement("DATA")
.WriteStartElement("ID")
.WriteElementString("PROJECT", TextBox1.Text)
.WriteElementString("DESCRIPTION", TextBox2.Text)
.WriteElementString("STATUS", ComboBox1.Text)
.WriteElementString("OWNER", TextBox4.Text)
.WriteElementString("DATE", TextBox5.Text)
.WriteElementString("CLIENT", TextBox6.Text)
.WriteEndElement()
.WriteEndElement()
.Close()
End With
The desierd output would be as follows:
123
my description
Open
Shop assistant jack
28-08-2015
Toms store
123
my description
Open
Shop assistant jack
28-08-2015
Toms store