Gambas Documentation - /comp/gb.xml/xmlelement/appendchildren

/comp/gb.xml/xmlelement/appendchildren

# XmlElement.AppendChildren (gb.xml)

Sub AppendChildren ( NewChildren As XmlNode[] )

Adds all the nodes contained in the NewChildren array to the end of the list of children of this element.

This method is a faster way to do :

    Dim tNode As XmlNode
    Dim element As New XmlElement("foo")

    For Each tNode in NewChildren
      element.AppendChild(tNode)
    Next