org.jtool.jxplatform.dom
Class DomBuilder

java.lang.Object
  extended byorg.jtool.jxplatform.dom.DomBuilder

public class DomBuilder
extends java.lang.Object

Produces DOM object trees from XML documents.

Author:
Katsuhisa Maruyama

Constructor Summary
DomBuilder()
           
 
Method Summary
static org.w3c.dom.Document create()
          Creates a new DOM document object which is the root of a DOM object tree.
static org.w3c.dom.Document create(java.lang.String text)
          Parses the text of the given XML document and returns a new DOM document object.
static void delete(org.w3c.dom.Document doc)
          Deconstructs a DOM object tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomBuilder

public DomBuilder()
Method Detail

create

public static org.w3c.dom.Document create(java.lang.String text)
Parses the text of the given XML document and returns a new DOM document object.

Parameters:
text - The text of an XML doucment.
Returns:
The DOM document object.

create

public static org.w3c.dom.Document create()
Creates a new DOM document object which is the root of a DOM object tree.

Returns:
The DOM Document object.

delete

public static void delete(org.w3c.dom.Document doc)
Deconstructs a DOM object tree.

Parameters:
doc - The root of a DOM object tree to be deleted.