org.apache.xalan.serialize
Interface DOMSerializer

All Known Implementing Classes:
SerializerToXML

public interface DOMSerializer

Interface for a DOM serializer implementation.

The DOM serializer is a facet of a serializer. A serializer may or may not support a DOM serializer.

Example:

 Document     doc;
 Serializer   ser;
 OutputStream os;

 ser.setOutputStream( os );
 ser.asDOMSerializer( doc );
 

Author:
Scott Boag, Assaf Arkin

Method Summary
 void serialize(org.w3c.dom.Node node)
          Serializes the DOM node.
 

Method Detail

serialize

public void serialize(org.w3c.dom.Node node)
               throws IOException
Serializes the DOM node. Throws an exception only if an I/O exception occured while serializing.

Throws:
IOException - An I/O exception occured while serializing