Top Description Methods
org.apache.xml.serialize

public Interface DOMSerializer

Known Direct Implementers
org.apache.xml.serialize.BaseMarkupSerializer
Imports
java.io.IOException, org.w3c.dom.Document, .DocumentFragment, .Element

Deprecated

This class was deprecated in Xerces 2.9.0. It is recommended that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation API for XML (TrAX) for serializing XML. See the Xerces documentation for more information.

Interface for a DOM serializer implementation.
Authors
Scott Boag, Assaf Arkin
Version
$Revision: 699892 $ $Date: 2008-09-29 02:38:27 +0530 (Mon, 29 Sep 2008) $

Method Summary

Modifier and TypeMethod and Description
public void
serialize(Element
The element to serialize
elem
)

Serialized the DOM element.

public void
serialize(Document
The document to serialize
doc
)

Serializes the DOM document.

public void
serialize(DocumentFragment
The document fragment to serialize
frag
)

Serializes the DOM document fragment.

Method Detail

serializeback to summary
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:Element

The element to serialize

Exceptions
IOException:
An I/O exception occured while serializing
serializeback to summary
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:Document

The document to serialize

Exceptions
IOException:
An I/O exception occured while serializing
serializeback to summary
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:DocumentFragment

The document fragment to serialize

Exceptions
IOException:
An I/O exception occured while serializing