com.icl.saxon.output

Class DOMEmitter

public class DOMEmitter extends Emitter

DOMEmitter is an Emitter that attaches the result tree to a specified Node in a DOM Document
Field Summary
protected NodecurrentNode
protected Documentdocument
Method Summary
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(String target, String data)
Handle a processing instruction.
voidsetNode(Node node)
Set output destination
voidstartDocument()
Start of the document.
voidstartElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Start of an element.

Field Detail

currentNode

protected Node currentNode

document

protected Document document

Method Detail

characters

public void characters(char[] ch, int start, int length)
Character data.

comment

public void comment(char[] ch, int start, int length)
Handle a comment.

endDocument

public void endDocument()
End of the document.

endElement

public void endElement(int nameCode)
End of an element.

processingInstruction

public void processingInstruction(String target, String data)
Handle a processing instruction.

setNode

public void setNode(Node node)
Set output destination

startDocument

public void startDocument()
Start of the document.

startElement

public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount)
Start of an element. Output the start tag, escaping special characters.