comp • gb.xml • xmlelement • appendtext

XmlElement.AppendText (gb.xml)

Sub AppendText ( Data As String )

Creates a new text node, with the given NewText value, and adds it to the end of the list of children of this element.

This method is a faster way to do :

Dim element As New XmlElement("foo")
Dim text As New XmlTextNode(NewText)

element.AppendChild(text)