Top Description Methods
com.sun.org.apache.xml.internal.serializer

public Interface DOMSerializer

Known Direct Subinterfaces
com.sun.org.apache.xml.internal.serializer.SerializationHandler
Imports
java.io.IOException, org.w3c.dom.Node

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 Also
Serializer

Method Summary

Modifier and TypeMethod and Description
public void
serialize(Node
the DOM node to serialize
node
)

Serializes the DOM node.

Method Detail

serializeback to summary
public void serialize(Node node) throws IOException

Serializes the DOM node. Throws an exception only if an I/O exception occured while serializing. This interface is a public API.

Parameters
node:Node

the DOM node to serialize

Exceptions
IOException:
if an I/O exception occured while serializing