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: |
Note: All functions in this class are reentrant.
Public Functions
virtual | ~QXmlLexicalHandler() |
virtual bool | comment(const QString &ch) = 0 |
virtual bool | endCDATA() = 0 |
virtual bool | endDTD() = 0 |
virtual bool | endEntity(const QString &name) = 0 |
virtual QString | errorString() const = 0 |
virtual bool | startCDATA() = 0 |
virtual bool | startDTD(const QString &name, const QString &publicId, const QString &systemId) = 0 |
virtual bool | startEntity(const QString &name) = 0 |
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 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.
Member Function Documentation
[virtual]
QXmlLexicalHandler::~QXmlLexicalHandler()
Destroys the instance of QXmlLexicalHandler. The destructor is virtual.