OpenOffice.org
XMerge API

org.openoffice.xmerge.util
Class XmlUtil

java.lang.Object
  |
  +--org.openoffice.xmerge.util.XmlUtil

public final class XmlUtil
extends java.lang.Object

Class containing static util methods for handling XML trees.


Constructor Summary
XmlUtil()
           
 
Method Summary
static org.w3c.dom.Node deepClone(org.w3c.dom.Node oldNode, org.w3c.dom.Node newNode)
          Perform a deep clone of certain Node which will base on the document Node of the old Node.
static java.lang.String getNodeInfo(org.w3c.dom.Node node)
          Returns the name and type of an XML DOM Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtil

public XmlUtil()
Method Detail

deepClone

public static org.w3c.dom.Node deepClone(org.w3c.dom.Node oldNode,
                                         org.w3c.dom.Node newNode)
Perform a deep clone of certain Node which will base on the document Node of the old Node.
Parameters:
oldNode - The Document of this Node is used to clone the Node
newNode - The Node to clone.
Returns:
The cloned Node.

getNodeInfo

public static java.lang.String getNodeInfo(org.w3c.dom.Node node)
Returns the name and type of an XML DOM Node.
Parameters:
node - Node to query.
Returns:
Name and type of XML DOM Node.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org