org.apache.xml.serialize

Interface DOMSerializer

public interface DOMSerializer

Interface for a DOM serializer implementation.

Version: $Revision: 1.5 $ $Date: 2004/02/24 23:34:03 $

Author: Scott Boag Assaf Arkin

Method Summary
voidserialize(Element elem)
Serialized the DOM element.
voidserialize(Document doc)
Serializes the DOM document.
voidserialize(DocumentFragment frag)
Serializes the DOM document fragment.

Method Detail

serialize

public void serialize(Element elem)
Serialized the DOM element. Throws an exception only if an I/O exception occured while serializing.

Parameters: elem The element to serialize

Throws: IOException An I/O exception occured while serializing

serialize

public void serialize(Document doc)
Serializes the DOM document. Throws an exception only if an I/O exception occured while serializing.

Parameters: doc The document to serialize

Throws: IOException An I/O exception occured while serializing

serialize

public void serialize(DocumentFragment frag)
Serializes the DOM document fragment. Throws an exception only if an I/O exception occured while serializing.

Parameters: frag The document fragment to serialize

Throws: IOException An I/O exception occured while serializing

Copyright © 1999-2005 Apache XML Project. All Rights Reserved.