DOMEmitter
Keywords: com.icl.saxon.output.DOMEmitter class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.icl.saxon.output
Class DOMEmitter

    java.lang.Object
      com.icl.saxon.output.Emitter
          com.icl.saxon.output.DOMEmitter

All Implemented Interfaces:
  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
`protected org.w3c.dom.Node` | `currentNode`
`protected org.w3c.dom.Document` | `document`

Fields 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
`DOMEmitter()`

Method Summary
`void` | `characters(char[] ch, int start, int length)` Character data.
`void` | `comment(char[] ch, int start, int length)` Handle a comment.
`void` | `endDocument()` End of the document.
`void` | `endElement(int nameCode)` End of an element.
`void` | `processingInstruction(java.lang.String target, java.lang.String data)` Handle a processing instruction.
`void` | `setNode(org.w3c.dom.Node node)` Set output destination
`void` | `startDocument()` Start of the document.
`void` | `startElement(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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### currentNode

    protected org.w3c.dom.Node currentNode

### document

    protected org.w3c.dom.Document document

Constructor Detail

### DOMEmitter

    public DOMEmitter()

Method Detail

### startDocument

    public void startDocument()

  Start of the document.

  Specified by:
    `startDocument` in class `Emitter`

### endDocument

    public void endDocument()

  End of the document.

  Specified by:
    `endDocument` in class `Emitter`

### startElement

    public void startElement(int nameCode,
                             org.xml.sax.Attributes attributes,
                             int[] namespaces,
                             int nscount)
                      throws TransformerException

  Start of an element. Output the start tag, escaping special characters.

  Specified by:
    `startElement` in class `Emitter`
  Parameters:
    `namespaces` - Array of namespace codes identifying the namespace prefix/uri pairs associated with this element
    `nscount` - Number of significant entries within namespaces array
  Throws:
    `TransformerException`

### endElement

    public void endElement(int nameCode)
                    throws TransformerException

  End of an element.

  Specified by:
    `endElement` in class `Emitter`
  Throws:
    `TransformerException`

### characters

    public void characters(char[] ch,
                           int start,
                           int length)
                    throws TransformerException

  Character data.

  Specified by:
    `characters` in class `Emitter`
  Throws:
    `TransformerException`

### processingInstruction

    public void processingInstruction(java.lang.String target,
                                      java.lang.String data)
                               throws TransformerException

  Handle a processing instruction.

  Specified by:
    `processingInstruction` in class `Emitter`
  Throws:
    `TransformerException`

### comment

    public void comment(char[] ch,
                        int start,
                        int length)
                 throws TransformerException

  Handle a comment.

  Specified by:
    `comment` in class `Emitter`
  Throws:
    `TransformerException`

### setNode

    public void setNode(org.w3c.dom.Node node)

  Set output destination

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD