Use the following methods to copy or detach an element from
a message tree:
- Detach
- This method detaches the current element from the tree.
- DetachAllChildren
- This method detaches all children of the current element from
the tree.
Use one of the following methods to attach an
element or subtree that you have copied on to another tree:
- AddBefore
- This method adds an element before the referenced element.
- AddAfter
- This method adds an element after the referenced element.
- AddFirst
- This method adds an element as the first child of the referenced
element.
- AddLast
- This method adds an element as the last child of the referenced
element.