org.apache.xml.serialize

Class XHTMLSerializer

public class XHTMLSerializer extends HTMLSerializer

Deprecated: This class was deprecated in Xerces 2.6.2. It is recommended that new applications use JAXP's Transformation API for XML (TrAX) for serializing XHTML. See the Xerces documentation for more information.

Implements an XHTML serializer supporting both DOM and SAX pretty serializing. For usage instructions see either Serializer or BaseMarkupSerializer.

Version: $Revision: 1.12 $ $Date: 2004/09/06 22:57:13 $

Author: Assaf Arkin

See Also: Serializer

Constructor Summary
XHTMLSerializer()
Constructs a new serializer.
XHTMLSerializer(OutputFormat format)
Constructs a new serializer.
XHTMLSerializer(Writer writer, OutputFormat format)
Constructs a new serializer that writes to the specified writer using the specified output format.
XHTMLSerializer(OutputStream output, OutputFormat format)
Constructs a new serializer that writes to the specified output stream using the specified output format.
Method Summary
voidsetOutputFormat(OutputFormat format)

Constructor Detail

XHTMLSerializer

public XHTMLSerializer()
Constructs a new serializer. The serializer cannot be used without calling XHTMLSerializer or XHTMLSerializer first.

XHTMLSerializer

public XHTMLSerializer(OutputFormat format)
Constructs a new serializer. The serializer cannot be used without calling XHTMLSerializer or XHTMLSerializer first.

XHTMLSerializer

public XHTMLSerializer(Writer writer, OutputFormat format)
Constructs a new serializer that writes to the specified writer using the specified output format. If format is null, will use a default output format.

Parameters: writer The writer to use format The output format to use, null for the default

XHTMLSerializer

public XHTMLSerializer(OutputStream output, OutputFormat format)
Constructs a new serializer that writes to the specified output stream using the specified output format. If format is null, will use a default output format.

Parameters: output The output stream to use format The output format to use, null for the default

Method Detail

setOutputFormat

public void setOutputFormat(OutputFormat format)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.