Classes - Annotated - Tree - Functions - Home - Structure

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


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:

To get started see also the tiny SAX2 parser walkthrough.


Member Function Documentation

QXmlSimpleReader::QXmlSimpleReader ()

Constructs a simple XML reader with the following feature settings:

More information about features can be found in the Qt SAX2 overview.

See also setFeature().

QXmlSimpleReader::~QXmlSimpleReader () [virtual]

Destroys a simple XML reader.

bool QXmlSimpleReader::parseContinue () [virtual]

Continues incremental parsing; this function reads the input from the QXmlInputSource that was specified with the last parse() command. To use this function, you must have called parse() with the incremental argument set to TRUE (otherwise this function returns FALSE).

If the input source returns an empty string for the function QXmlInputSource::data(), then this means that the end of the XML file is reached; this is quite important, especially if you want to use the reader to parse more than one XML file.

This function returns FALSE in the case of a parsing error. The case that the end of the XML file is reached without having finished the parsing is also an error. Otherwise this function returns TRUE. A return value of TRUE does not mean that the parsing is finished. Use ### instead to determine if the parsing is really finished.

See also parse().


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.


Copyright © 2001 TrolltechTrademarks
Qt version 3.0.0-beta1-beta1