org.apache.xml.serialize

Interface DOMSerializer

Known Implementing Classes:
BaseMarkupSerializer, HTMLSerializer, TextSerializer, XHTMLSerializer, XML11Serializer, XMLSerializer

public interface DOMSerializer

Interface for a DOM serializer implementation.
Version:
$Revision: 476047 $ $Date: 2006-11-16 23:27:45 -0500 (Thu, 16 Nov 2006) $
Authors:
Scott Boag
Assaf Arkin

Method Summary

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.

Method Details

serialize

public void serialize(Document doc)
            throws IOException
Serializes the DOM document. Throws an exception only if an I/O exception occured while serializing.
Parameters:
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.
Parameters:
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.
Parameters:
elem - The element to serialize

Copyright B) 1999-2007 The Apache Software Foundation. All Rights Reserved.