APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xerces.internal.jaxp.validation

pack-priv Interface DOMDocumentHandler

extends XMLDocumentHandler
Known Direct Implementers
com.sun.org.apache.xerces.internal.jaxp.validation.DOMResultAugmentor, com.sun.org.apache.xerces.internal.jaxp.validation.DOMResultBuilder
Imports
javax.xml.transform.dom.DOMResult, com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler, .XNIException, org.w3c.dom.CDATASection, .Comment, .DocumentType, .ProcessingInstruction, .Text

An extension to XMLDocumentHandler for building DOM structures.

Author
Michael Glavassevich, IBM

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
comment(Comment
a Comment node
node
)

A comment.

public void
doctypeDecl(DocumentType
a DocumentType node
node
)

A document type declaration.

public void
processingInstruction(ProcessingInstruction
a ProcessingInstruction node
node
)

A processing instruction.

public void
setDOMResult(DOMResult
the object which receives the constructed DOM nodes
result
)

Sets the DOMResult object which receives the constructed DOM nodes.

public void
setIgnoringCharacters(boolean ignore)

Inherited from com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler:
characterscommentdoctypeDeclemptyElementendCDATAendDocumentendElementendGeneralEntitygetDocumentSourceignorableWhitespaceprocessingInstructionsetDocumentSourcestartCDATAstartDocumentstartElementstartGeneralEntitytextDeclxmlDecl

Method Detail

cdataback to summary
public void cdata(CDATASection node) throws XNIException
charactersback to summary
public void characters(Text node) throws XNIException
commentback to summary
public void comment(Comment node) throws XNIException

A comment.

Parameters
node:Comment

a Comment node

Exceptions
XNIException:
Thrown by application to signal an error.
doctypeDeclback to summary
public void doctypeDecl(DocumentType node) throws XNIException

A document type declaration.

Parameters
node:DocumentType

a DocumentType node

Exceptions
XNIException:
Thrown by handler to signal an error.
processingInstructionback to summary
public void processingInstruction(ProcessingInstruction node) throws XNIException

A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

Parameters
node:ProcessingInstruction

a ProcessingInstruction node

Exceptions
XNIException:
Thrown by handler to signal an error.
setDOMResultback to summary
public void setDOMResult(DOMResult result)

Sets the DOMResult object which receives the constructed DOM nodes.

Parameters
result:DOMResult

the object which receives the constructed DOM nodes

setIgnoringCharactersback to summary
public void setIgnoringCharacters(boolean ignore)