org.apache.xml.serialize
Interface DOMSerializer
- BaseMarkupSerializer, HTMLSerializer, TextSerializer, XHTMLSerializer, XML11Serializer, XMLSerializer
public interface DOMSerializer
Interface for a DOM serializer implementation.
$Revision: 1.5 $ $Date: 2004/02/24 23:34:03 $ void | serialize(Document doc) - Serializes the DOM document.
|
void | serialize(DocumentFragment frag) - Serializes the DOM document fragment.
|
void | serialize(Element elem) - Serialized the DOM element.
|
serialize
public void serialize(Document doc)
throws IOException
Serializes the DOM document. Throws an exception only if
an I/O exception occured while serializing.
doc
- The document to serialize
serialize
public void serialize(DocumentFragment frag)
throws IOException
Serializes the DOM document fragment. Throws an exception
only if an I/O exception occured while serializing.
frag
- The document fragment to serialize
serialize
public void serialize(Element elem)
throws IOException
Serialized the DOM element. Throws an exception only if
an I/O exception occured while serializing.
elem
- The element to serialize
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.