de.ispsoft.jaxme
Class DOMSerializer

java.lang.Object
  extended byde.ispsoft.jaxme.DOMSerializer

public class DOMSerializer
extends java.lang.Object

Serializes a DOM document by firing off a stream of SAX events.

Version:
$Id: DOMSerializer.java,v 1.1 2002/04/24 14:09:40 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
DOMSerializer()
           
 
Method Summary
static java.lang.String asString(org.w3c.dom.Node pNode)
          Serializes a DOM document or element into a string by instantiating a DOMSerializer and calling its serialize method.
static void serialize(org.xml.sax.ContentHandler pHandler, org.w3c.dom.Node pNode)
          Serializes the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMSerializer

public DOMSerializer()
Method Detail

asString

public static java.lang.String asString(org.w3c.dom.Node pNode)
                                 throws org.xml.sax.SAXException,
                                        java.io.IOException

Serializes a DOM document or element into a string by instantiating a DOMSerializer and calling its serialize method.

Parameters:
pNode - The node being serialized, either a document node or an element node
Throws:
org.xml.sax.SAXException
java.io.IOException

serialize

public static void serialize(org.xml.sax.ContentHandler pHandler,
                             org.w3c.dom.Node pNode)
                      throws org.xml.sax.SAXException

Serializes the given node.

Parameters:
pNode - The node being serialized, either a document node or an element node
Throws:
org.xml.sax.SAXException