XMLを読み込みと書き込み

xmlDoc = New XmlDocument

'ファイルが存在する
xmlDoc.Load(xmlFilePath)

ファイルが存在しない
xmlDoc.LoadXml("<?xml version=""1.0"" encoding=""utf-8"" ?><root/>")

ドキュメントトップの取得
xmlRoot = xmlDoc.DocumentElement

保存
xmlDoc.Save(xmlFilePath)

検索

Dim nodes As XmlNodeList
nodes = xmlDoc.DocumentElement.SelectNodes("//id")

//id  タグ名がidを探す

テキストノードの作成

xmlText = xmlDoc.CreateTextNode(テキスト)

エレメントノードの作成

xmlEle = xmlDoc.CreateElement(タグ名)

親子連結する

親.AppendChild(子供)

DOMからテキストを取り出す

エレメント.InnerText()