public class DOMCloner
extends java.lang.Object
| Constructor and Description |
|---|
DOMCloner() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
cloneDocument(org.w3c.dom.DOMImplementation domImpl,
org.w3c.dom.Document document)
Deep-clone a document.
|
org.w3c.dom.Node |
cloneNode(org.w3c.dom.Document doc,
org.w3c.dom.Node eold)
Clone an existing node.
|
void |
copyAttributes(org.w3c.dom.Document doc,
org.w3c.dom.Element eold,
org.w3c.dom.Element enew)
Copy the attributes from an existing node to a new node.
|
public org.w3c.dom.Document cloneDocument(org.w3c.dom.DOMImplementation domImpl,
org.w3c.dom.Document document)
domImpl - DOM implementation to usedocument - Original documentpublic org.w3c.dom.Node cloneNode(org.w3c.dom.Document doc,
org.w3c.dom.Node eold)
doc - Documenteold - Existing nodepublic void copyAttributes(org.w3c.dom.Document doc,
org.w3c.dom.Element eold,
org.w3c.dom.Element enew)
doc - Target documenteold - Existing nodeenew - Target nodeCopyright © 2019 ELKI Development Team. License information.