FileDocCategorySizeDatePackage
DOMSerializer.javaAPI DocJava SE 6 API1817Tue Jun 10 00:23:06 BST 2008com.sun.org.apache.xml.internal.serializer

DOMSerializer

public interface DOMSerializer
Interface for a DOM serializer implementation.

The DOMSerializer is a facet of a serializer and is obtained from the asDOMSerializer() method of the Serializer interface. A serializer may or may not support a DOM serializer, if it does not then the return value from asDOMSerializer() is null.

Example:

Document doc;
Serializer ser;
OutputStream os;

ser = ...;
os = ...;

ser.setOutputStream( os );
DOMSerialzier dser = ser.asDOMSerializer();
dser.serialize(doc);
see
Serializer
xsl.usage
general

Fields Summary
Constructors Summary
Methods Summary
public voidserialize(org.w3c.dom.Node node)
Serializes the DOM node. Throws an exception only if an I/O exception occured while serializing. This interface is a public API.

param
node the DOM node to serialize
throws
IOException if an I/O exception occured while serializing