QXmlLexicalHandler Class

The QXmlLexicalHandler class provides an interface to report the lexical content of XML data. More...

Header: #include <QXmlLexicalHandler>
qmake: QT += xml
Inherited By:

QXmlDefaultHandler

This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Note: All functions in this class are reentrant.

Detailed Description

The events in the lexical handler apply to the entire document, not just to the document element, and all lexical handler events appear between the content handler's startDocument and endDocument events.

You can set the lexical handler with QXmlReader::setLexicalHandler().

This interface's design is based on the SAX2 extension LexicalHandler.

The interface provides the startDTD(), endDTD(), startEntity(), endEntity(), startCDATA(), endCDATA() and comment() functions.

See also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver, and QXmlErrorHandler.