DOMIT! v 0.1 Tutorial
<<    index    >>
1    2    3    4    5    6    7    8    9    10    11    12    13    14    15   
16    17    18    19    20    21    22    23    24    25    26   
cloneNode

The cloneNode method allows you to copy a node or hierarchy of nodes that do not retain references to their originating DOM Document.

If you wish to clone a single node, do this:

$myClone =& cdCollection->documentElement->cloneNode();

This will return a single node named "cdLibrary". If you also want to clone all subnodes of a node, pass a value of true to the method:

$myDeepClone =& cdCollection->documentElement->cloneNode(true);

This will return the entire node hierarchy of the cd library.


Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.