![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The QXmlLexicalHandler class provides an interface to report lexical content of XML data. More...
#include <qxml.h>
Inherited by QXmlDefaultHandler.
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 is designed after the SAX2 extension LexicalHandler.
See also the Introduction to SAX2.
See also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver and QXmlErrorHandler.
The reader calls this function to report an XML comment anywhere in the document. It reports the text of the comment in ch.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
The reader calls this function to report the end of a CDATA section.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also startCDATA().
The reader calls this function to report the end of a DTD declaration, if any.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also startDTD().
The reader calls this function to report the end of an entity with the name name.
To every call of startEntity(), there is a fitting call of endEntity(). The calls of startEntity() and endEntity() are properly nested.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also startEntity() and QXmlSimpleReader::setFeature().
The reader calls this function to get an error string if any of the handler functions returns FALSE to him.
The reader calls this function to report the start of a CDATA section. The content of the CDATA section is reported through the regular QXmlContentHandler::characters(). This function is intended only to report the boundary.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also endCDATA().
The reader calls this function to report the start of a DTD declaration, if any. It reports the name of the document type in name, the public identifier in publicId and the system identifier in systemId.
If the public identifier resp. the system identifier is missing, the reader sets publicId resp. systemId to QString::null.
All declarations reported through QXmlDTDHandler or QXmlDeclHandler appear between the startDTD() and endDTD() calls.
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also endDTD().
The reader calls this function to report the start of an entity with the name name.
Please note that if the entity is unknown, the reader reports it through QXmlContentHandler::skippedEntity() and not throught this function.
To get the reporting of startEntity() and endEntity() with the QXmlSimpleReader, you have to set the feature http://trolltech.com/xml/features/report-start-end-entity to TRUE (the default is FALSE).
If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message that is used for reporting the error.
See also endEntity() and QXmlSimpleReader::setFeature().
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta1-beta1
|