AddChild method

         

Create a new child Element

Return Type

An Element object. A handle to the new Element

Syntax

object.AddChild (Name, Text)

The AddChild method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type Element.
NameRequired. A String value.
TextRequired. A String value.