Eneboo - Documentación para desarrolladores
Métodos públicos
Referencia de la Clase QXmlLexicalHandler

The QXmlLexicalHandler class provides an interface to report the lexical content of XML data.XMLThe 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. Más...

#include <qxml.h>

Diagrama de herencias de QXmlLexicalHandler
QXmlDefaultHandler QXmlDefaultHandler QDomHandler QphHandler TsHandler TsHandler UiHandler QDomHandler QphHandler TsHandler TsHandler UiHandler

Lista de todos los miembros.

Métodos públicos

virtual bool startDTD (const QString &name, const QString &publicId, const QString &systemId)=0
virtual bool endDTD ()=0
virtual bool startEntity (const QString &name)=0
virtual bool endEntity (const QString &name)=0
virtual bool startCDATA ()=0
virtual bool endCDATA ()=0
virtual bool comment (const QString &ch)=0
virtual QString errorString ()=0
virtual bool startDTD (const QString &name, const QString &publicId, const QString &systemId)=0
virtual bool endDTD ()=0
virtual bool startEntity (const QString &name)=0
virtual bool endEntity (const QString &name)=0
virtual bool startCDATA ()=0
virtual bool endCDATA ()=0
virtual bool comment (const QString &ch)=0
virtual QString errorString ()=0

Descripción detallada

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

XML

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 the Introduction to SAX2.

Ver también:
QXmlDTDHandler QXmlDeclHandler QXmlContentHandler QXmlEntityResolver QXmlErrorHandler

Documentación de las funciones miembro

bool QXmlLexicalHandler::comment ( const QString ch) [pure virtual]

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.

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

virtual bool QXmlLexicalHandler::comment ( const QString ch) [pure virtual]
bool QXmlLexicalHandler::endCDATA ( ) [pure virtual]

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.

Ver también:
startCDATA() QXmlContentHandler::characters()

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

virtual bool QXmlLexicalHandler::endCDATA ( ) [pure virtual]
virtual bool QXmlLexicalHandler::endDTD ( ) [pure virtual]
bool QXmlLexicalHandler::endDTD ( ) [pure virtual]

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.

Ver también:
startDTD()

Implementado en QXmlDefaultHandler y QXmlDefaultHandler.

bool QXmlLexicalHandler::endEntity ( const QString name) [pure virtual]

The reader calls this function to report the end of an entity called name.

For every startEntity() call, there is a corresponding endEntity() call. The calls to 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.

Ver también:
startEntity() QXmlContentHandler::skippedEntity() QXmlSimpleReader::setFeature()

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

virtual bool QXmlLexicalHandler::endEntity ( const QString name) [pure virtual]
QString QXmlLexicalHandler::errorString ( ) [pure virtual]

The reader calls this function to get an error string if any of the handler functions returns FALSE.

Implementado en QXmlDefaultHandler y QXmlDefaultHandler.

virtual QString QXmlLexicalHandler::errorString ( ) [pure virtual]
virtual bool QXmlLexicalHandler::startCDATA ( ) [pure virtual]
bool QXmlLexicalHandler::startCDATA ( ) [pure virtual]

The reader calls this function to report the start of a CDATA section. The content of the CDATA section is reported through the QXmlContentHandler::characters() function. 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.

Ver también:
endCDATA()

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

bool QXmlLexicalHandler::startDTD ( const QString name,
const QString publicId,
const QString systemId 
) [pure virtual]

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 is missing, publicId is set to QString::null. If the system identifier is missing, systemId is set to QString::null. Note that it is not valid XML to have a public identifier but no system identifier; in such cases a parse error will occur.

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.

Ver también:
endDTD()

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

virtual bool QXmlLexicalHandler::startDTD ( const QString name,
const QString publicId,
const QString systemId 
) [pure virtual]
bool QXmlLexicalHandler::startEntity ( const QString name) [pure virtual]

The reader calls this function to report the start of an entity called name.

Note that if the entity is unknown, the reader reports it through QXmlContentHandler::skippedEntity() and not through this function.

If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message.

Ver también:
endEntity() QXmlSimpleReader::setFeature()

Implementado en QXmlDefaultHandler, QDomHandler y QXmlDefaultHandler.

virtual bool QXmlLexicalHandler::startEntity ( const QString name) [pure virtual]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'