X-Z > XML.appendChild
XML.appendChildSyntax
myXML
.appendChild(
childNode
);
Arguments
childNode
The child node to be added to the specified XML object's child list.
Description
Method; appends the specified child node to the XML object's child list. The appended child node is placed in the tree structure once removed from its existing parent node, if any.
Player
Flash 5 or later.
Example
The following example clones the last node from doc1
and appends it to doc2
:
doc1 = new XML(src1); doc2 = new XML(); node = doc1.lastChild.cloneNode(true); doc2.appendChild(node);