QXmlDeclHandler Class

The QXmlDeclHandler class provides an interface to report declaration content of XML data. More...

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

QXmlDefaultHandler

Note: All functions in this class are reentrant.

Public Functions

virtual ~QXmlDeclHandler()
virtual bool attributeDecl(const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value) = 0
virtual QString errorString() const = 0
virtual bool externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId) = 0
virtual bool internalEntityDecl(const QString &name, const QString &value) = 0

Detailed Description

The QXmlDeclHandler class provides an interface to report declaration content of XML data.

You can set the declaration handler with QXmlReader::setDeclHandler().

This interface is based on the SAX2 extension DeclHandler.

The interface provides attributeDecl(), internalEntityDecl() and externalEntityDecl() functions.

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

Member Function Documentation

[virtual] QXmlDeclHandler::~QXmlDeclHandler()

Destroys the instance of QXmlDeclHandler. The destructor is virtual.

[pure virtual] bool QXmlDeclHandler::attributeDecl(const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)

[pure virtual] QString QXmlDeclHandler::errorString() const

[pure virtual] bool QXmlDeclHandler::externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId)

[pure virtual] bool QXmlDeclHandler::internalEntityDecl(const QString &name, const QString &value)