|  | Home · Overviews · Examples |

# QXmlLexicalHandler Class Reference
[com.trolltech.qt.xml module]

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

Inherits .

## Detailed Description

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

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 the SAX2 extension LexicalHandler.

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

See also `QXmlDTDHandler`, `QXmlDeclHandler`, `QXmlContentHandler`, `QXmlEntityResolver`, `QXmlErrorHandler`, and Introduction to SAX2.