All Known Implementing Classes:
XMLSerializer, XHTMLSerializer, BaseMarkupSerializer, XML11Serializer, HTMLSerializer, TextSerializer
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 and HTML. See the Xerces documentation for more
information.To serialize a document using SAX events, create a compatible serializer and pass it around as a org.xml.sax.DocumentHandler . If an I/O error occurs while serializing, it will be thrown by DocumentHandler#endDocument . The SAX serializer may also be used as org.xml.sax.DTDHandler , org.xml.sax.ext.DeclHandler and org.xml.sax.ext.LexicalHandler .
To serialize a DOM document or DOM element, create a compatible serializer and call it's DOMSerializer#serialize(Document) or DOMSerializer#serialize(Element) methods. Both methods would produce a full XML document, to serizlie only the portion of the document use OutputFormat#setOmitXMLDeclaration and specify no document type.
The OutputFormat dictates what underlying serialized is used to serialize the document based on the specified method. If the output format or method are missing, the default is an XML serializer with UTF-8 encoding and now indentation.
$ - Revision: 476047 $ $Date: 2006-11-16 23:27:45 -0500 (Thu, 16 Nov 2006) $< - a href="mailto:arkin@intalio.com">Assaf Arkin< - a href="mailto:Scott_Boag/CAM/Lotus@lotus.com">Scott Boag| Method from org.apache.xml.serialize.Serializer Summary: |
|---|
| asContentHandler, asDOMSerializer, asDocumentHandler, setOutputByteStream, setOutputCharStream, setOutputFormat |
| Method from org.apache.xml.serialize.Serializer Detail: |
|---|
|
|
|
|
|
|