QXmlSimpleReader(3qt)

NAME
QXmlSimpleReader - Implementation of a simple XML reader (i.e. parser)

#include <qxml.h>

Inherits QXmlReader.

  Public Members
QXmlSimpleReader ()
virtual ~QXmlSimpleReader ()
virtual bool feature ( const QString & name, bool * ok = 0 ) const
virtual void setFeature ( const QString & name, bool value )
virtual bool hasFeature ( const QString & name ) const
virtual void* property ( const QString & name, bool * ok = 0 ) const
virtual void setProperty ( const QString & name, void * value )
virtual bool hasProperty ( const QString & name ) const

DESCRIPTION
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).

This XML reader is sufficient for simple parsing tasks. Here is a short list of the properties of this reader:

well-formed parser

does not parse any external entities

can do namespace processing

For getting started see also the Quick start

Examples: xml/tagreader/tagreader.cpp xml/tagreader

MEMBER FUNCTION DOCUMENTATION

QXmlDTDHandler* QXmlSimpleReader::DTDHandler () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

QXmlSimpleReader::QXmlSimpleReader ()
Constructs a simple XML reader.

QXmlSimpleReader::~QXmlSimpleReader () [virtual]
Destroys a simple XML reader.

QXmlContentHandler* QXmlSimpleReader::contentHandler () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

QXmlDeclHandler* QXmlSimpleReader::declHandler () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

QXmlEntityResolver* QXmlSimpleReader::entityResolver () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

QXmlErrorHandler* QXmlSimpleReader::errorHandler () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

bool QXmlSimpleReader::feature ( const QString & name, bool * ok = 0 ) const [virtual]
Gets the state of a feature.

See also setFeature() and hasFeature().

Reimplemented from QXmlReader.

bool QXmlSimpleReader::hasFeature ( const QString & name ) const [virtual]
Returns TRUE if the class has a feature named feature, otherwise FALSE.

See also setFeature() and feature().

Reimplemented from QXmlReader.

bool QXmlSimpleReader::hasProperty ( const QString & ) const [virtual]
Returns FALSE since this class does not support any properties.

Reimplemented from QXmlReader.

QXmlLexicalHandler* QXmlSimpleReader::lexicalHandler () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

bool QXmlSimpleReader::parse ( const QXmlInputSource & input ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Examples: xml/tagreader/tagreader.cpp xml/tagreader

Reimplemented from QXmlReader.

void* QXmlSimpleReader::property ( const QString &, bool * ok = 0 ) const [virtual]
Returns 0 since this class does not support any properties.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setContentHandler ( QXmlContentHandler * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Examples: xml/tagreader/tagreader.cpp xml/tagreader

Reimplemented from QXmlReader.

void QXmlSimpleReader::setDTDHandler ( QXmlDTDHandler * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setDeclHandler ( QXmlDeclHandler * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setEntityResolver ( QXmlEntityResolver * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setErrorHandler ( QXmlErrorHandler * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setFeature ( const QString & name, bool value ) [virtual]
Sets the state of a feature.

Supported features are:

http://xml.org/sax/features/namespaces: if this feature is TRUE, namespace processing is performed

http://xml.org/sax/features/namespace-prefixes: if this feature is TRUE, the the original prefixed names and attributes used for namespace declarations are reported

http://trolltech.com/xml/features/report-whitespace-only-CharData: if this feature is TRUE, CharData that consists only of whitespace (and no other characters) is not reported via QXmlContentHandler::characters()

See also feature() and hasFeature().

Examples: xml/tagreader

Reimplemented from QXmlReader.

void QXmlSimpleReader::setLexicalHandler ( QXmlLexicalHandler * handler ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QXmlReader.

void QXmlSimpleReader::setProperty ( const QString &, void * ) [virtual]
Does nothing since this class does not support any properties.

Reimplemented from QXmlReader.

SEE ALSO
http://doc.trolltech.com/qxmlsimplereader.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qxmlsimplereader.3qt) and the Qt version (2.3.0).