Product Information > JADE Encyclopaedia of Classes – Volume 2 > Chapter 1 - System Classes > copyBefore

copyBefore

copyBefore(siblingNode: JadeXMLNode input): JadeXMLNode;

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