View RSS Feed

Java XML

  1. Java SAX Parser

    by , 04-27-2012 at 06:15 PM
    SAX is an abbreviation and means "Simple API for XML". A Java SAX XML parser is a stream oriented XML parser. It works by iterating over the XML and call certain methods on a "listener" object when it meets certain structural elements of the XML. For instance, it will call the listener object for the following "events":
    - startDocument
    - startElement
    - characters
    - comments
    - processing instructions
    - endElement
    - endDocument ...
    Categories
    SAX.