Interface XmlSaxHandler


public interface XmlSaxHandler
A holder for a SAX ContentHandler and LexicalHandler that are capable of loading an XmlObject instance. Once all the SAX events are pushed to the handlers, call getObject() to get the loaded XmlObject.
See Also:
  • Method Details

    • getContentHandler

      ContentHandler getContentHandler()
      The ContentHandler expecting SAX content events.
      See Also:
    • getLexicalHandler

      LexicalHandler getLexicalHandler()
      The LexicalHandler expecting SAX lexical events.
      See Also:
    • bookmarkLastEvent

      void bookmarkLastEvent(XmlCursor.XmlBookmark mark)
      Insert a bookmark before the token associated with the last SAX event.
    • bookmarkLastAttr

      void bookmarkLastAttr(QName attrName, XmlCursor.XmlBookmark mark)
      Insert a bookmark before the attr token associated with the last SAX element event.
    • getObject

      XmlObject getObject() throws XmlException
      Returns the loaded XmlObject after all the SAX events have been finished
      Throws:
      XmlException