copyAsChildOf

copyAsChildOf(parentNode: JadeXMLNode input): JadeXMLNode;

The copyAsChildOf method of the JadeXMLNode class creates a copy of the node and all of its descendant nodes, inserts it into the XML tree as a child of the node specified in the parentNode parameter, and returns a reference to the created JadeXMLNode node instance.