Returns a copy of this node. The following example shows how to copy a node and append it to another node. xmlDoc = XMLDocument() initialize xmlDoc using content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><invoice></invoice>" xmlNode2.text = "May 26, 2005" xmlNode2 = addChildFor(xmlNode, tag : "customer") xmlNode2.text = "Peter" // ==================================================== // Adding a child Node to an existing node.. suppose the customer node has the billing address as a child xmlNode3 = addChildFor(xmlNode2, tag : "address") xmlNode3.text = "Park Ave. 2039 NY" // ==================================================== // Append a node to an existing one, suppose that the customer also has a delivery address, we'll build the // node separately and then we will append it to the customer node xmlNode4 = xmlNode3.copy xmlNode4.text = "St.Peter Blvd. 3920 CA" xmlNode5 = appendTo(xmlNode2, node : xmlNode4)