| Classes - Annotated - Tree - Functions - Home - Structure

# QXmlDefaultHandler Class Reference
[ XML module ]

The QXmlDefaultHandler class provides a default implementation of all XML handler classes. More...

`#include <qxml.h>`

Inherits QXmlContentHandler, QXmlDTDHandler, QXmlDeclHandler, QXmlEntityResolver, QXmlErrorHandler and QXmlLexicalHandler.

List of all member functions.

## Public Members

- QXmlDefaultHandler ()
- virtual ~QXmlDefaultHandler ()
- virtual void setDocumentLocator ( QXmlLocator * locator )
- virtual bool startDocument ()
- virtual bool endDocument ()
- virtual bool startPrefixMapping ( const QString & prefix, const QString & uri )
- virtual bool endPrefixMapping ( const QString & prefix )
- virtual bool startElement ( const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts )
- virtual bool endElement ( const QString & namespaceURI, const QString & localName, const QString & qName )
- virtual bool characters ( const QString & ch )
- virtual bool ignorableWhitespace ( const QString & ch )
- virtual bool processingInstruction ( const QString & target, const QString & data )
- virtual bool skippedEntity ( const QString & name )
- virtual bool warning ( const QXmlParseException & exception )
- virtual bool error ( const QXmlParseException & exception )
- virtual bool fatalError ( const QXmlParseException & exception )
- virtual bool notationDecl ( const QString & name, const QString & publicId, const QString & systemId )
- virtual bool unparsedEntityDecl ( const QString & name, const QString & publicId, const QString & systemId, const QString & notationName )
- virtual bool resolveEntity ( const QString & publicId, const QString & systemId, QXmlInputSource * ret )
- virtual bool startDTD ( const QString & name, const QString & publicId, const QString & systemId )
- virtual bool endDTD ()
- virtual bool startCDATA ()
- virtual bool endCDATA ()
- virtual bool comment ( const QString & ch )
- virtual bool attributeDecl ( const QString & eName, const QString & aName, const QString & type, const QString & valueDefault, const QString & value )
- virtual bool internalEntityDecl ( const QString & name, const QString & value )
- virtual bool externalEntityDecl ( const QString & name, const QString & publicId, const QString & systemId )
- virtual QString errorString ()

## Detailed Description

The QXmlDefaultHandler class provides a default implementation of all XML handler classes.

Very often you are only interested in parts of the things that that the reader reports to you. This class simply implements a default behaviour of the handler classes (most of the time: do nothing). Normally this is the class you subclass for implementing your customized handler.

See also the Introduction to SAX2.

See also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver, QXmlErrorHandler and QXmlLexicalHandler.

## Member Function Documentation

### QXmlDefaultHandler::QXmlDefaultHandler ()

Constructor.

### QXmlDefaultHandler::~QXmlDefaultHandler () `[virtual]`

Destructor.

### bool QXmlDefaultHandler::attributeDecl ( const QString &, const QString &, const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlDeclHandler.

### bool QXmlDefaultHandler::characters ( const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::comment ( const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlLexicalHandler.

### bool QXmlDefaultHandler::endCDATA () `[virtual]`

Does nothing.

Reimplemented from QXmlLexicalHandler.

### bool QXmlDefaultHandler::endDTD () `[virtual]`

Does nothing.

Reimplemented from QXmlLexicalHandler.

### bool QXmlDefaultHandler::endDocument () `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::endElement ( const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::endPrefixMapping ( const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::error ( const QXmlParseException & ) `[virtual]`

Does nothing.

Reimplemented from QXmlErrorHandler.

### QString QXmlDefaultHandler::errorString () `[virtual]`

Returns the default error string.

Reimplemented from QXmlDTDHandler.

### bool QXmlDefaultHandler::externalEntityDecl ( const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlDeclHandler.

### bool QXmlDefaultHandler::fatalError ( const QXmlParseException & ) `[virtual]`

Does nothing.

Reimplemented from QXmlErrorHandler.

### bool QXmlDefaultHandler::ignorableWhitespace ( const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::internalEntityDecl ( const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlDeclHandler.

### bool QXmlDefaultHandler::notationDecl ( const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlDTDHandler.

### bool QXmlDefaultHandler::processingInstruction ( const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::resolveEntity ( const QString &, const QString &, QXmlInputSource * ret ) `[virtual]`

Always sets ret to 0, so that the reader will use the system identifier provided in the XML document.

Reimplemented from QXmlEntityResolver.

### void QXmlDefaultHandler::setDocumentLocator ( QXmlLocator * ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::skippedEntity ( const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::startCDATA () `[virtual]`

Does nothing.

Reimplemented from QXmlLexicalHandler.

### bool QXmlDefaultHandler::startDTD ( const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlLexicalHandler.

### bool QXmlDefaultHandler::startDocument () `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::startElement ( const QString &, const QString &, const QString &, const QXmlAttributes & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::startPrefixMapping ( const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlContentHandler.

### bool QXmlDefaultHandler::unparsedEntityDecl ( const QString &, const QString &, const QString &, const QString & ) `[virtual]`

Does nothing.

Reimplemented from QXmlDTDHandler.

### bool QXmlDefaultHandler::warning ( const QXmlParseException & ) `[virtual]`

Does nothing.

Reimplemented from QXmlErrorHandler.

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.