XmlElement.RemoveChild (gb.xml)

Sub RemoveChild ( OldChild As XmlNode )

Removes OldChild from the list of children.

Note that the removed children are destroyed only if you have no reference on them.