The DomDocument class / om.DomDocument methods |
Create a new element node by copying an existing node.
copy( source om.DomNode, deep INTEGER ) RETURNING result om.DomNode
Use the method copy() to create a new om.DomNode element node from an existing node.
Pass TRUE as second parameter to clone a complete tree of nodes.
To hold the reference to the new node, define a variable with the type om.DomNode type.
DEFINE n, s om.DomNode LET s = mydoc.createElement("Car") LET n = mydoc.copy(s, TRUE)