Package com.icl.saxon.output
Class DOMEmitter
- java.lang.Object
-
- com.icl.saxon.output.Emitter
-
- com.icl.saxon.output.DOMEmitter
-
- All Implemented Interfaces:
javax.xml.transform.Result
public class DOMEmitter extends Emitter
DOMEmitter is an Emitter that attaches the result tree to a specified Node in a DOM Document
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.NodecurrentNodeprotected org.w3c.dom.Documentdocument-
Fields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputProperties, outputStream, systemId, writer
-
-
Constructor Summary
Constructors Constructor Description DOMEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Character data.voidcomment(char[] ch, int start, int length)Handle a comment.voidendDocument()End of the document.voidendElement(int nameCode)End of an element.voidprocessingInstruction(java.lang.String target, java.lang.String data)Handle a processing instruction.voidsetNode(org.w3c.dom.Node node)Set output destinationvoidstartDocument()Start of the document.voidstartElement(int nameCode, org.xml.sax.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
-
-
-
-
Method Detail
-
startDocument
public void startDocument()
Start of the document.- Specified by:
startDocumentin classEmitter
-
endDocument
public void endDocument()
End of the document.- Specified by:
endDocumentin classEmitter
-
startElement
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws javax.xml.transform.TransformerExceptionStart of an element. Output the start tag, escaping special characters.- Specified by:
startElementin classEmitternamespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount- Number of significant entries within namespaces array- Throws:
javax.xml.transform.TransformerException
-
endElement
public void endElement(int nameCode) throws javax.xml.transform.TransformerExceptionEnd of an element.- Specified by:
endElementin classEmitter- Throws:
javax.xml.transform.TransformerException
-
characters
public void characters(char[] ch, int start, int length) throws javax.xml.transform.TransformerExceptionCharacter data.- Specified by:
charactersin classEmitter- Throws:
javax.xml.transform.TransformerException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws javax.xml.transform.TransformerExceptionHandle a processing instruction.- Specified by:
processingInstructionin classEmitter- Throws:
javax.xml.transform.TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws javax.xml.transform.TransformerExceptionHandle a comment.
-
setNode
public void setNode(org.w3c.dom.Node node)
Set output destination
-
-