net.sf.saxon.dom

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
voidattribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
voidcharacters(CharSequence chars, int locationId, int properties)
Character data.
voidclose()
End of the document.
voidcomment(CharSequence chars, int locationId, int properties)
Handle a comment.
voidendDocument()
Notify the end of a document node
voidendElement()
End of an element.
voidnamespace(int namespaceCode, int properties)
voidopen()
Start of the document.
voidprocessingInstruction(String target, CharSequence data, int locationId, int properties)
Handle a processing instruction.
voidsetNode(Node node)
Set output destination
voidstartContent()
voidstartDocument(int properties)
Start of a document node.
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Start of an element.

Field Detail

currentNode

protected Node currentNode

document

protected Document document

Method Detail

attribute

public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)

characters

public void characters(CharSequence chars, int locationId, int properties)
Character data.

close

public void close()
End of the document.

comment

public void comment(CharSequence chars, int locationId, int properties)
Handle a comment.

endDocument

public void endDocument()
Notify the end of a document node

endElement

public void endElement()
End of an element.

namespace

public void namespace(int namespaceCode, int properties)

open

public void open()
Start of the document.

processingInstruction

public void processingInstruction(String target, CharSequence data, int locationId, int properties)
Handle a processing instruction.

setNode

public void setNode(Node node)
Set output destination

startContent

public void startContent()

startDocument

public void startDocument(int properties)
Start of a document node.

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Start of an element.