copy


Description:

public static bool copy (Document doc, Node node, Node source, bool deep)

Copy a GXml.Node relaying on GXml.Document to other GXml.Node.

node could belongs from different GXml.Document , while source is a node belonging to given document.

Only GXml.Element objects are supported. For attributes, use GXml.Element.set_attr method, passing source's name and value as arguments.

Parameters:

doc

a GXml.Document owning destiny node

node

a GXml.Element to copy nodes to

source

a GXml.Element to copy nodes from, it could be holded by different GXml.Document