

Dim read As String
read = Read_XML_Value_("\DiscInfo\Disc.xml", "/Root/", "Name")
discsel.Items.Add(read)
dim xdoc as xdocument = xdocument.load(path) For Each xel In xdoc.Elements()(0).Elements() '### Next
<whatever> <item>item1</item> <item>item2</item> <item>item3</item> </whatever>
Dim writer As New XmlTextWriter(directory, Nothing)
writer.WriteStartElement("items")
writer.WriteElementString("name", TxtBox1.Text)
writer.WriteEndElement()
writer.Close()

dim enc as new system.text.unicodeencoding
dim xwriter as new xml.xmltextwriter(directory, enc)
with xwriter
.writestartdocument()
.writestartelement("whatever") '<whatever>
.writestartelement("item") '<item>
.writevalue("item1") 'item1
.writeendelement() '</item>
.writestartelement("item") '<item>
.writevalue("item2") 'item2
.writeendelement() '</item>
.writeendelement() '</whatever>
.close()
end with
x (damnit bo bo, go away >:O. Should be combo box). The thing is, if every name is different, you have to load it all seperatly (unless there's a way to do that). 

Private Sub saveCleaningLocations(ByVal folderPath As String)
Dim writestart As Boolean
'If file doesnt exist then set write to true
If IO.File.Exists("CleaningLocations.xml") Then
Dim currentXMLDocument As New XmlDocument
currentXMLDocument.Load("CleaningLocations.xml")
Dim parentNode As XmlNode = currentXMLDocument.SelectSingleNode("Locations")
Dim prodnode As XmlNode = currentXMLDocument.CreateNode(XmlNodeType.Element, "FolderPath", "")
prodnode.InnerText = folderPath
parentNode.AppendChild(prodnode)
currentXMLDocument.Save("CleaningLocations.xml")
Else
writestart = True
Dim xmlFile As IO.FileStream = New IO.FileStream("CleaningLocations.xml", IO.FileMode.Append)
Dim xmlTextWriter As New XmlTextWriter(xmlFile, System.Text.Encoding.Default)
With xmlTextWriter
.Formatting = Formatting.Indented
.Indentation = 3
.IndentChar = CChar(" ")
If writestart Then .WriteStartDocument()
.WriteStartElement("Locations")
.WriteElementString("FolderPath", folderPath)
.WriteFullEndElement()
.Close()
End With
End If
databind()
End Sub
Private Sub ReadCleaningLocations()
If IO.File.Exists("CleaningLocations.xml") Then
Dim documentClean As XmlReader = New XmlTextReader("CleaningLocations.xml")
While (documentClean.Read())
Dim type = documentClean.NodeType
If type = XmlNodeType.Element Then
If documentClean.Name = "FolderPath" Then
CreateRows(documentClean.ReadInnerXml.ToString)
End If
End If
End While
documentClean.Close()
End If
End Sub