U-X > XML.appendChild |
![]() ![]() ![]() |
XML.appendChild
Availability
Flash Player 5.
Usage
myXML
.appendChild(
childNode
)
Parameters
childNode
The child node to be added to the specified XML object's child list.
Returns
Nothing.
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.
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);
![]() ![]() ![]() |