Package com.icl.saxon

Class TreeDriver

  • All Implemented Interfaces:
    org.xml.sax.Locator, org.xml.sax.XMLReader

    public class TreeDriver
    extends DOMDriver
    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.
    • Constructor Detail

      • TreeDriver

        public TreeDriver()
    • Method Detail

      • setDocument

        public void setDocument​(org.w3c.dom.Document doc)
        Set the DOM Document that will be walked
      • parse

        public void parse()
                   throws org.xml.sax.SAXException
        Walk a document (traversing the nodes depth first)
        Overrides:
        parse in class DOMDriver
        Parameters:
        doc - The (DOM) Document object to walk.
        Throws:
        org.xml.sax.SAXException - On any error in the document