nazdar ........ mám takýto kód na ukladanie nodes do XML súboru
Dim settings As New XmlWriterSettings()
settings.Indent = True
' Initialize the XmlWriter.
Dim XmlWrt As XmlWriter = XmlWriter.Create("MyName.xml", settings)
With XmlWrt
.WriteStartDocument()
.WriteComment("TreeView1Nodes")
Dim i As Integer = 0
Dim iend As Integer = TreeView1.Nodes.Count - 1
Do Until i = iend
.WriteStartElement(TreeView1.Nodes.Item(i).Text)
Dim i2 As Integer = 0
Dim i2end As Integer = TreeView1.Nodes.Item(i).Nodes.Count - 1
Do Until i2 = i2end
.WriteStartElement(TreeView1.Nodes.Item(i).Nodes.Item(i2).Text)
Dim i3 As Integer = 0
Dim i3end As Integer = TreeView1.Nodes.Item(i).Nodes.Item(i2).Nodes.Count - 1
Do Until i3 = i3end
.WriteStartElement(TreeView1.Nodes.Item(i).Nodes.Item(i2).Nodes.Item(i3).Text)
i3 = i3 + 1
Loop
Dim i3info As String = TreeView1.Nodes.Item(i).Nodes.Item(i2).Nodes.Item(i3end).Text
.WriteEndElement(i3info)
i2 = i2 + 1
Loop
Dim i2info As String = TreeView1.Nodes.Item(i).Nodes.Item(i2end).Text
.WriteEndElement(i2info)
i = i + 1
Loop
Dim iinfo As String = TreeView1.Nodes.Item(iend).Text
.WriteEndElement(iinfo)
.WriteEndElement()
.WriteEndDocument()
.Close()
End With
MessageBox.Show("XML file saved.")
ale pri .WriteEndElement(iinfo) ; .WriteEndElement(i2info) ; WriteEndElement(i3info) mi vyhodí túto chybu
"Too many arguments to 'Public MustOverride Sub WriteEndElement()'."
Poradte pls ..... Vopred díky