QXmlSimpleReader Class Reference
[ XML module ]
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).
More...
#include <qxml.h>
Inherits QXmlReader.
List of all member functions.
Public Members
-
-
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
Detailed 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-with-features/tagreader.cpp
xml/tagreader/tagreader.cpp
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 name, 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-with-features/tagreader.cpp
xml/tagreader/tagreader.cpp
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-with-features/tagreader.cpp
xml/tagreader/tagreader.cpp
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-with-features/tagreader.cpp
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.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2005
Trolltech, all rights reserved.