Logo Search packages:      
Sourcecode: lib-dom-java version File versions  Download package

Node org::w3c::dom::Node::cloneNode ( boolean  deep  )  [inherited]

Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent ( parentNode returns null.).
Cloning an Element copies all attributes and their values, including those generated by the XML processor to represent defaulted attributes, but this method does not copy any text it contains unless it is a deep clone, since the text is contained in a child Text node. Cloning any other type of node simply returns a copy of this node.

deep If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).
The duplicate node.

Generated by  Doxygen 1.6.0   Back to index