org.apache.xml.serializer
public interface DOMSerializer
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);
Serializer| Modifier and Type | Method and Description |
|---|---|
void |
serialize(org.w3c.dom.Node node)
Serializes the DOM node.
|
void serialize(org.w3c.dom.Node node)
throws java.io.IOException
node - the DOM node to serializejava.io.IOException - if an I/O exception occured while serializingCopyright ? 2005 Apache XML Project. All Rights Reserved.