org.merlotxml.util.xml
Class DOMUtil

java.lang.Object
  extended byorg.merlotxml.util.xml.DOMUtil

public class DOMUtil
extends java.lang.Object

DOM Utilities

Author:
Tim McCune

Constructor Summary
DOMUtil()
           
 
Method Summary
static org.w3c.dom.Node importNode(org.w3c.dom.Node parent, org.w3c.dom.Node child)
          Import a single node into a document.
static org.w3c.dom.Node importNode(org.w3c.dom.Node parent, org.w3c.dom.Node child, boolean doappend)
          Import a single node into a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

importNode

public static org.w3c.dom.Node importNode(org.w3c.dom.Node parent,
                                          org.w3c.dom.Node child)
Import a single node into a document. The node may have come from an external document.

Parameters:
parent - Node at which to insert the imported node
child - Node to append to insertionPoint

importNode

public static org.w3c.dom.Node importNode(org.w3c.dom.Node parent,
                                          org.w3c.dom.Node child,
                                          boolean doappend)
Import a single node into a document. The node may have come from an external document.

Parameters:
parent - Node at which to insert the imported node
child - Node to append to insertionPoint
doappend - if true, this will go ahead and append the node, otherwise, no action is done with the newly created node.