Package com.icl.saxon.output
Class DOMEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.DOMEmitter
- All Implemented Interfaces:
Result
DOMEmitter is an Emitter that attaches the result tree to a specified Node in a DOM Document
-
Field Summary
FieldsFields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputProperties, outputStream, systemId, writer
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Character data.void
comment
(char[] ch, int start, int length) Handle a comment.void
End of the document.void
endElement
(int nameCode) End of an element.void
processingInstruction
(String target, String data) Handle a processing instruction.void
Set output destinationvoid
Start of the document.void
startElement
(int nameCode, Attributes attributes, int[] namespaces, int nscount) Start of an element.Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
Field Details
-
currentNode
-
document
-
-
Constructor Details
-
DOMEmitter
public DOMEmitter()
-
-
Method Details
-
startDocument
public void startDocument()Start of the document.- Specified by:
startDocument
in classEmitter
-
endDocument
public void endDocument()End of the document.- Specified by:
endDocument
in classEmitter
-
startElement
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Start of an element. Output the start tag, escaping special characters.- Specified by:
startElement
in classEmitter
- Parameters:
namespaces
- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount
- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
End of an element.- Specified by:
endElement
in classEmitter
- Throws:
TransformerException
-
characters
Character data.- Specified by:
characters
in classEmitter
- Throws:
TransformerException
-
processingInstruction
Handle a processing instruction.- Specified by:
processingInstruction
in classEmitter
- Throws:
TransformerException
-
comment
Handle a comment.- Specified by:
comment
in classEmitter
- Throws:
TransformerException
-
setNode
Set output destination
-