APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xml.internal.serialize

public Interface DOMSerializer

Known Direct Implementers
com.sun.org.apache.xml.internal.serialize.BaseMarkupSerializer
Annotations
@Deprecated
Imports
java.io.IOException, org.w3c.dom.Element, .Document, .DocumentFragment

Deprecated

As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation is replaced by that of Xalan. Main class com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl is replaced by com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl.

Interface for a DOM serializer implementation.
Authors
Scott Boag, Assaf Arkin

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