Wie oben beschrieben möchte ich prüfen ob der XML Attribute existiert, und falls nicht einer erstellt wird.
Nur leider hab ich auf Google nix gefunden wie man einen Erstellt
Mein Versuch sieht so aus:
Danke im vorraus
Nur leider hab ich auf Google nix gefunden wie man einen Erstellt
Mein Versuch sieht so aus:
VB.NET-Quellcode
- If TextBox5.Text = "" Then
- For Each node As XElement In doc.Descendants("LiveOver")
- Dim fillType As XElement = node.Element("infos")
- ' Dim fillType2 As XElement = fillType.Element("info")
- Dim fillType2 As XElement = doc.Descendants("info")
- If fillType2 Is Nothing Then
- fillType2.Add("info")
- End If
- Next
- Else
- End If
Danke im vorraus