Package com.icl.saxon
Class TreeDriver
java.lang.Object
com.icl.saxon.DOMDriver
com.icl.saxon.TreeDriver
TreeDriver.java: (pseudo-)SAX driver for Saxon trees.
Subclasses DOMDriver for the case where the tree is a Saxon tree (a DocumentInfo) This class simulates the action of a SAX Parser, taking an already-constructed DOM Document and walking around it in a depth-first traversal, calling a SAX-compliant ContentHandler to process the children as it does so.
Subclasses DOMDriver for the case where the tree is a Saxon tree (a DocumentInfo) This class simulates the action of a SAX Parser, taking an already-constructed DOM Document and walking around it in a depth-first traversal, calling a SAX-compliant ContentHandler to process the children as it does so.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse()
Walk a document (traversing the nodes depth first)void
setDocument
(Document doc) Set the DOM Document that will be walkedMethods inherited from class com.icl.saxon.DOMDriver
getColumnNumber, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLineNumber, getProperty, getPublicId, getSystemId, parse, parse, setContentHandler, setDocumentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLocale, setProperty, setStartNode, setSystemId
-
Constructor Details
-
TreeDriver
public TreeDriver()
-
-
Method Details
-
setDocument
Set the DOM Document that will be walked -
parse
Walk a document (traversing the nodes depth first)- Overrides:
parse
in classDOMDriver
- Parameters:
doc
- The (DOM) Document object to walk.- Throws:
SAXException
- On any error in the document
-