The
LexicalHandler
interface reports:
Comments
CDATA sections
Document type declaration
Entities
An optional extension that not all parsers support
To set the LexicalHandler
for a parser,
set the
"http://xml.org/sax/handlers/lexical-handler" property.
A SAXNotRecognizedException
will be thrown if the parser
doesn't report lexical events.
A SAXNotSupportedException
will be thrown if
you pass the wrong object type at the wrong time.