SaxParser processes input incrementally, notifying the provided
SaxHandler of parsing events such as start tags, end tags and
text content. Because the parser does not construct a tree representation
of the document it is possible to process very large inputs efficiently.
Malformed XML documents are not accepted, parsing errors cannot be recovered
from.
A streaming SAX-style XML parser.
SaxParserprocesses input incrementally, notifying the providedSaxHandlerof parsing events such as start tags, end tags and text content. Because the parser does not construct a tree representation of the document it is possible to process very large inputs efficiently.Malformed XML documents are not accepted, parsing errors cannot be recovered from.
For namespace-aware processing use
SaxNamespaceParserinstead.Example
See
SaxHandlerSaxOptionsSaxNamespaceHandlerSaxNamespaceParser