Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2483

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QXmlStreamReader" doc="/**
&lt;p&gt;The &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; class provides a fast well-formed XML parser with a simple streaming API.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; is a faster and more convenient replacement for Qt's own SAX parser (see &lt;a href=&quot;QXmlSimpleReader.html&quot;&gt;&lt;tt&gt;QXmlSimpleReader&lt;/tt&gt;&lt;/a&gt;), and in some cases also for applications that would previously use a DOM tree (see &lt;a href=&quot;QDomDocument.html&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; reads data either from a &lt;a href=&quot;%2E%2E/core/QIODevice.html&quot;&gt;&lt;tt&gt;QIODevice&lt;/tt&gt;&lt;/a&gt; (see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt;), or from a raw &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; (see &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt;). With &lt;a href=&quot;QXmlStreamWriter.html&quot;&gt;&lt;tt&gt;QXmlStreamWriter&lt;/tt&gt;&lt;/a&gt;, Qt provides a related class for writing XML.&lt;/p&gt;
&lt;p&gt;The basic concept of a stream reader is to report an XML document as a stream of tokens, similar to SAX. The main difference between &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; and SAX is &lt;i&gt;how&lt;/i&gt; these XML tokens are reported. With SAX, the application must provide handlers that receive so-called XML &lt;i&gt;events&lt;/i&gt; from the parser at the parser's convenience. With &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt;, the application code itself drives the loop and pulls &lt;i&gt;tokens&lt;/i&gt; from the reader one after another as it needs them. This is done by calling &lt;a href=&quot;QXmlStreamReader.html#readNext()&quot;&gt;&lt;tt&gt;readNext&lt;/tt&gt;&lt;/a&gt;, which makes the reader read from the input stream until it has completed a new token, and then returns its &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt;. A set of convenient functions like &lt;a href=&quot;QXmlStreamReader.html#isStartElement()&quot;&gt;&lt;tt&gt;isStartElement&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; then allows to examine this token, and to obtain information about what has been read. The big advantage of the pulling approach is the possibility to build recursive descent parsers, meaning you can split your XML parsing code easily into different methods or classes. This makes it easy to keep track of the application's own state when parsing XML.&lt;/p&gt;
&lt;p&gt;A typical loop with &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; looks like this:&lt;/p&gt;
&lt;pre&gt;    QXmlStreamReader xml;
    ...
    while (!xml.atEnd()) {
          xml.readNext();
          ... &lt;span class=&quot;comment&quot;&gt;// do processing&lt;/span&gt;
    }
    if (xml.hasError()) {
          ... &lt;span class=&quot;comment&quot;&gt;// do error handling&lt;/span&gt;
    }&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; is a well-formed XML 1.0 parser that does &lt;i&gt;not&lt;/i&gt; include external parsed entities. As long as no error occurs, the application code can thus be assured that the data provided by the stream reader satisfies the W3C's criteria for well-formed XML. For example, you can be certain that all tags are indeed nested and closed properly, that references to internal entities have been replaced with the correct replacement text, and that attributes have been normalized or added according to the internal subset of the DTD.&lt;/p&gt;
&lt;p&gt;If an error does occur while parsing, &lt;a href=&quot;QXmlStreamReader.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; returns true and &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; returns the kind of error that occurred. &lt;a href=&quot;QXmlStreamReader.html#hasError()&quot;&gt;&lt;tt&gt;hasError&lt;/tt&gt;&lt;/a&gt; can also be used to check whether an error has occurred. The functions &lt;a href=&quot;QXmlStreamReader.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#lineNumber()&quot;&gt;&lt;tt&gt;lineNumber&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#columnNumber()&quot;&gt;&lt;tt&gt;columnNumber&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QXmlStreamReader.html#characterOffset()&quot;&gt;&lt;tt&gt;characterOffset&lt;/tt&gt;&lt;/a&gt; make it possible to generate a verbose human-understandable error or warning message. In order to simplify application code, &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; contains a &lt;a href=&quot;QXmlStreamReader.html#raiseError(java.lang.String)&quot;&gt;&lt;tt&gt;raiseError&lt;/tt&gt;&lt;/a&gt; mechanism that makes it possible to raise custom errors that then trigger the same error handling code path.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;QXmlStream Bookmarks Example&lt;/tt&gt; illustrates how to use the recursive descent technique with a subclassed stream reader to read an XML bookmark file (XBEL).&lt;/p&gt;
&lt;a name=&quot;namespaces&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Namespaces&lt;/h3&gt;
&lt;p&gt;QXmlStream understands and resolves XML namespaces. E.g&amp;#x2e; in case of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; returns the namespace the element is in, and &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt; returns the element's &lt;i&gt;local&lt;/i&gt; name. The combination of &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; and name uniquely identifies an element. If a namespace prefix was not declared in the XML entities parsed by the reader, the &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; is empty.&lt;/p&gt;
&lt;p&gt;If you parse XML data that does not utilize namespaces according to the XML specification or doesn't use namespaces at all, you can use the element's &lt;a href=&quot;QXmlStreamReader.html#qualifiedName()&quot;&gt;&lt;tt&gt;qualifiedName&lt;/tt&gt;&lt;/a&gt; instead. A qualified name is the element's &lt;i&gt;prefix&lt;/i&gt; followed by colon followed by the element's local name - exactly like the element appears in the raw XML data. Since the mapping &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; to prefix is neither unique nor universal, &lt;a href=&quot;QXmlStreamReader.html#qualifiedName()&quot;&gt;&lt;tt&gt;qualifiedName&lt;/tt&gt;&lt;/a&gt; should be avoided for namespace-compliant XML data.&lt;/p&gt;
&lt;p&gt;In order to parse standalone documents that do use undeclared namespace prefixes, you can turn off namespace processing completely with the &lt;a href=&quot;QXmlStreamReader.html#namespaceProcessing()&quot;&gt;&lt;tt&gt;namespaceProcessing&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;a name=&quot;incremental-parsing&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Incremental parsing&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; is an incremental parser. If you can't parse the entire input in one go (for example, it is huge, or is being delivered over a network connection), data can be fed to the parser in pieces. If the reader runs out of data before the document has been parsed completely, it reports a &lt;a href=&quot;QXmlStreamReader.html#Error-enum&quot;&gt;&lt;tt&gt;PrematureEndOfDocumentError&lt;/tt&gt;&lt;/a&gt;. Once more data has arrived, either through the device or because it has been added with &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt;, it recovers from that error and continues parsing on the next call to read().&lt;/p&gt;
&lt;p&gt;For example, if you read data from the network using &lt;a href=&quot;%2E%2E/network/QHttp.html&quot;&gt;&lt;tt&gt;QHttp&lt;/tt&gt;&lt;/a&gt;, you would connect its readyRead() signal to a custom slot. In this slot, you read all available data with readAll() and pass it to the XML stream reader using &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt;. Then you call your custom parsing function that reads the XML events from the reader.&lt;/p&gt;
&lt;a name=&quot;performance-and-memory-consumption&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Performance and memory consumption&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; is memory-conservative by design, since it doesn't store the entire XML document tree in memory, but only the current token at the time it is reported. In addition, &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt; avoids the many small string allocations that it normally takes to map an XML document to a convenient and Qt-ish API. It does this by reporting all string data as QStringRef rather than real &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; objects. QStringRef is a thin wrapper around &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; substrings that provides a subset of the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; API without the memory allocation and reference-counting overhead. Calling toString() on any of those objects returns an equivalent real &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */">
    <method name="public QXmlStreamReader(com.trolltech.qt.core.QByteArray data)" doc="/**
&lt;p&gt;Creates a new stream reader that reads from &lt;tt&gt;data&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QXmlStreamReader(java.lang.String data)" doc="/**
&lt;p&gt;Creates a new stream reader that reads from &lt;tt&gt;data&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QXmlStreamReader()" doc="/**
&lt;p&gt;Constructs a stream reader.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QXmlStreamReader(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;Creates a new stream reader that reads from &lt;tt&gt;device&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addData(com.trolltech.qt.core.QByteArray data)" doc="/**
&lt;p&gt;Adds more &lt;tt&gt;data&lt;/tt&gt; for the reader to read.&lt;/p&gt;
&lt;p&gt;This function does nothing if the reader has a &lt;a href=&quot;QXmlStreamReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addData(java.lang.String data)" doc="/**
&lt;p&gt;Adds more &lt;tt&gt;data&lt;/tt&gt; for the reader to read.&lt;/p&gt;
&lt;p&gt;This function does nothing if the reader has a &lt;a href=&quot;QXmlStreamReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean atEnd()" doc="/**
&lt;p&gt;Returns true if the reader has read until the end of the XML document, or an error has occurred and reading has been aborted; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Has reading been aborted with a &lt;a href=&quot;QXmlStreamReader.html#Error-enum&quot;&gt;&lt;tt&gt;PrematureEndOfDocumentError&lt;/tt&gt;&lt;/a&gt; because the device no longer delivered data, &lt;a href=&quot;QXmlStreamReader.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; will return true once more data has arrived.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QIODevice::atEnd&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QXmlStreamAttributes attributes()" doc="/**
&lt;p&gt;Returns the attributes of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final long characterOffset()" doc="/**
&lt;p&gt;Returns the current character offset, starting with 0.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#lineNumber()&quot;&gt;&lt;tt&gt;lineNumber&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#columnNumber()&quot;&gt;&lt;tt&gt;columnNumber&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Removes any &lt;a href=&quot;QXmlStreamReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt; or data from the reader, and resets its state to the initial state.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#addData(java.lang.String)&quot;&gt;&lt;tt&gt;addData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long columnNumber()" doc="/**
&lt;p&gt;Returns the current column number, starting with 0.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#lineNumber()&quot;&gt;&lt;tt&gt;lineNumber&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#characterOffset()&quot;&gt;&lt;tt&gt;characterOffset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QIODevice device()" doc="/**
&lt;p&gt;Returns the current device associated with the &lt;a href=&quot;QXmlStreamReader.html#QXmlStreamReader(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;QXmlStreamReader&lt;/tt&gt;&lt;/a&gt;, or 0 if no device has been assigned.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.xml.QXmlStreamEntityDeclaration&gt; entityDeclarations()" doc="/**
&lt;p&gt;If the state() is &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;DTD&lt;/tt&gt;&lt;/a&gt;, this function returns the DTD's unparsed (external) entity declarations. Otherwise an empty vector is returned.&lt;/p&gt;
&lt;p&gt;The QXmlStreamEntityDeclarations class is defined to be a QVector of &lt;a href=&quot;QXmlStreamEntityDeclaration.html&quot;&gt;&lt;tt&gt;QXmlStreamEntityDeclaration&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QXmlStreamReader.Error error()" doc="/**
&lt;p&gt;Returns the type of the current error, or &lt;a href=&quot;QXmlStreamReader.html#Error-enum&quot;&gt;&lt;tt&gt;NoError&lt;/tt&gt;&lt;/a&gt; if no error occurred.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#raiseError(java.lang.String)&quot;&gt;&lt;tt&gt;raiseError&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String errorString()" doc="/**
&lt;p&gt;Returns the error message that was set with &lt;a href=&quot;QXmlStreamReader.html#raiseError(java.lang.String)&quot;&gt;&lt;tt&gt;raiseError&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#lineNumber()&quot;&gt;&lt;tt&gt;lineNumber&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#columnNumber()&quot;&gt;&lt;tt&gt;columnNumber&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#characterOffset()&quot;&gt;&lt;tt&gt;characterOffset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasError()" doc="/**
&lt;p&gt;Returns &lt;tt&gt;true&lt;/tt&gt; if an error has occurred, otherwise &lt;tt&gt;false&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isCDATA()" doc="/**
&lt;p&gt;Returns true if the reader reports characters that stem from a CDATA section; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#isCharacters()&quot;&gt;&lt;tt&gt;isCharacters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isCharacters()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Characters&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#isWhitespace()&quot;&gt;&lt;tt&gt;isWhitespace&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#isCDATA()&quot;&gt;&lt;tt&gt;isCDATA&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isComment()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Comment&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isDTD()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;DTD&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEndDocument()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndDocument&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEndElement()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEntityReference()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EntityReference&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isProcessingInstruction()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;ProcessingInstruction&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isStandaloneDocument()" doc="/**
&lt;p&gt;Returns true if this document has been declared standalone in the XML declaration; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If no XML declaration has been parsed, this function returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isStartDocument()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartDocument&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isStartElement()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; equals &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isWhitespace()" doc="/**
&lt;p&gt;Returns true if the reader reports characters that only consist of white-space; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#isCharacters()&quot;&gt;&lt;tt&gt;isCharacters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long lineNumber()" doc="/**
&lt;p&gt;Returns the current line number, starting with 1.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#columnNumber()&quot;&gt;&lt;tt&gt;columnNumber&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#characterOffset()&quot;&gt;&lt;tt&gt;characterOffset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String name()" doc="/**
&lt;p&gt;Returns the local name of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;, or an &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EntityReference&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#qualifiedName()&quot;&gt;&lt;tt&gt;qualifiedName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.xml.QXmlStreamNamespaceDeclaration&gt; namespaceDeclarations()" doc="/**
&lt;p&gt;If the state() is &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;, this function returns the element's namespace declarations. Otherwise an empty vector is returned.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QXmlStreamNamespaceDeclaration.html&quot;&gt;&lt;tt&gt;QXmlStreamNamespaceDeclaration&lt;/tt&gt;&lt;/a&gt; class is defined to be a QVector of &lt;a href=&quot;QXmlStreamNamespaceDeclaration.html&quot;&gt;&lt;tt&gt;QXmlStreamNamespaceDeclaration&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean namespaceProcessing()" doc="/**
&lt;p&gt;the namespace-processing flag of the stream reader&lt;/p&gt;
&lt;p&gt;This property controls whether or not the stream reader processes namespaces. If enabled, the reader processes namespaces, otherwise it does not.&lt;/p&gt;
&lt;p&gt;By default, namespace-processing is enabled.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#setNamespaceProcessing(boolean)&quot;&gt;&lt;tt&gt;setNamespaceProcessing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String namespaceUri()" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#qualifiedName()&quot;&gt;&lt;tt&gt;qualifiedName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.xml.QXmlStreamNotationDeclaration&gt; notationDeclarations()" doc="/**
&lt;p&gt;If the state() is &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;DTD&lt;/tt&gt;&lt;/a&gt;, this function returns the DTD's notation declarations. Otherwise an empty vector is returned.&lt;/p&gt;
&lt;p&gt;The QXmlStreamNotationDeclarations class is defined to be a QVector of &lt;a href=&quot;QXmlStreamNotationDeclaration.html&quot;&gt;&lt;tt&gt;QXmlStreamNotationDeclaration&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String processingInstructionData()" doc="/**
&lt;p&gt;Returns the data of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;ProcessingInstruction&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String processingInstructionTarget()" doc="/**
&lt;p&gt;Returns the target of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;ProcessingInstruction&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String qualifiedName()" doc="/**
&lt;p&gt;Returns the qualified name of a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;;&lt;/p&gt;
&lt;p&gt;A qualified name is the raw name of an element in the XML data. It consists of the namespace prefix, followed by colon, followed by the element's local name. Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use &lt;a href=&quot;QXmlStreamReader.html#qualifiedName()&quot;&gt;&lt;tt&gt;qualifiedName&lt;/tt&gt;&lt;/a&gt;, but the resolved &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; and the attribute's local &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void raiseError(java.lang.String message)" doc="/**
&lt;p&gt;Raises a custom error with an optional error &lt;tt&gt;message&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void raiseError()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QXmlStreamReader.html#raiseError(java.lang.String)&quot;&gt;&lt;tt&gt;raiseError&lt;/tt&gt;&lt;/a&gt;(QString()). */"/>
    <method name="public final java.lang.String readElementText()" doc="/**
&lt;p&gt;Convenience function to be called in case a &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt; was read. Reads until the corresponding &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt; and returns all text in-between. In case of no error, the token after having called this function is &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The function concatenates &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; when it reads either &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Characters&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EntityReference&lt;/tt&gt;&lt;/a&gt; tokens, but skips &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;ProcessingInstruction&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Comment&lt;/tt&gt;&lt;/a&gt;. In case anything else is read before reaching &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;, the function returns what it read so far and raises an &lt;a href=&quot;QXmlStreamReader.html#Error-enum&quot;&gt;&lt;tt&gt;UnexpectedElementError&lt;/tt&gt;&lt;/a&gt;. If the current token is not &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;, an empty string is returned.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QXmlStreamReader.TokenType readNext()" doc="/**
&lt;p&gt;Reads the next token and returns its type.&lt;/p&gt;
&lt;p&gt;If an &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; has been reported, reading is no longer possible. In this case, &lt;a href=&quot;QXmlStreamReader.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; always returns true, and this function will do nothing but return Invalid.&lt;/p&gt;
&lt;p&gt;The one exception to this rule are errors of type &lt;a href=&quot;QXmlStreamReader.html#Error-enum&quot;&gt;&lt;tt&gt;PrematureEndOfDocumentError&lt;/tt&gt;&lt;/a&gt;. Subsequent calls to &lt;a href=&quot;QXmlStreamReader.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#readNext()&quot;&gt;&lt;tt&gt;readNext&lt;/tt&gt;&lt;/a&gt; will resume this error type and try to read from the device again. This iterative parsing approach makes sense if you can't or don't want to read the entire data in one go, for example, if it is huge, or it is being delivered over a network connection&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#tokenString()&quot;&gt;&lt;tt&gt;tokenString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDevice(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;Sets the current device to &lt;tt&gt;device&lt;/tt&gt;. Setting the device resets the stream to its initial state.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlStreamReader.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setNamespaceProcessing(boolean arg__1)" doc="/**
&lt;p&gt;the namespace-processing flag of the stream reader&lt;/p&gt;
&lt;p&gt;This property controls whether or not the stream reader processes namespaces. If enabled, the reader processes namespaces, otherwise it does not.&lt;/p&gt;
&lt;p&gt;By default, namespace-processing is enabled.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#namespaceProcessing()&quot;&gt;&lt;tt&gt;namespaceProcessing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the text of &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Characters&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;Comment&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;DTD&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EntityReference&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String tokenString()" doc="/**
&lt;p&gt;Returns the reader's current token as string.&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#tokenType()&quot;&gt;&lt;tt&gt;tokenType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QXmlStreamReader.TokenType tokenType()" doc="/**
&lt;p&gt;Returns the type of the current token.&lt;/p&gt;
&lt;p&gt;The current token can also be queried with the convenience functions &lt;a href=&quot;QXmlStreamReader.html#isStartDocument()&quot;&gt;&lt;tt&gt;isStartDocument&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isEndDocument()&quot;&gt;&lt;tt&gt;isEndDocument&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isStartElement()&quot;&gt;&lt;tt&gt;isStartElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isEndElement()&quot;&gt;&lt;tt&gt;isEndElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isCharacters()&quot;&gt;&lt;tt&gt;isCharacters&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isComment()&quot;&gt;&lt;tt&gt;isComment&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isDTD()&quot;&gt;&lt;tt&gt;isDTD&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QXmlStreamReader.html#isEntityReference()&quot;&gt;&lt;tt&gt;isEntityReference&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QXmlStreamReader.html#isProcessingInstruction()&quot;&gt;&lt;tt&gt;isProcessingInstruction&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QXmlStreamReader.html#tokenString()&quot;&gt;&lt;tt&gt;tokenString&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Error" doc="/**
&lt;p&gt;This enum specifies different error cases&lt;/p&gt;
 */">
        <enum-value name="NoError" doc="/**
&lt;p&gt;No error has occurred.&lt;/p&gt;
 */"/>
        <enum-value name="UnexpectedElementError" doc="/**
&lt;p&gt;The parser encountered an element that was different to those it expected.&lt;/p&gt;
 */"/>
        <enum-value name="CustomError" doc="/**
&lt;p&gt;A custom error has been raised with &lt;a href=&quot;QXmlStreamReader.html#raiseError(java.lang.String)&quot;&gt;&lt;tt&gt;raiseError&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;
 */"/>
        <enum-value name="NotWellFormedError" doc="/**
&lt;p&gt;The parser internally raised an error due to the read XML not being well-formed.&lt;/p&gt;
 */"/>
        <enum-value name="PrematureEndOfDocumentError" doc="/**
&lt;p&gt;The input stream ended before the document was parsed completely. This error can be recovered from.&lt;/p&gt;
 */"/>
</enum>
    <enum name="TokenType" doc="/**
&lt;p&gt;This enum specifies the type of token the reader just read.&lt;/p&gt;
 */">
        <enum-value name="NoToken" doc="/**
&lt;p&gt;The reader has not yet read anything.&lt;/p&gt;
 */"/>
        <enum-value name="Invalid" doc="/**
&lt;p&gt;An error has occurred, reported in &lt;a href=&quot;QXmlStreamReader.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="StartDocument" doc="/**
&lt;p&gt;The reader reports the start of the document. If the document is declared standalone, &lt;a href=&quot;QXmlStreamReader.html#isStandaloneDocument()&quot;&gt;&lt;tt&gt;isStandaloneDocument&lt;/tt&gt;&lt;/a&gt; returns true; otherwise it returns false.&lt;/p&gt;
 */"/>
        <enum-value name="EndDocument" doc="/**
&lt;p&gt;The reader reports the end of the document.&lt;/p&gt;
 */"/>
        <enum-value name="StartElement" doc="/**
&lt;p&gt;The reader reports the start of an element with &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;. Empty elements are also reported as &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;StartElement&lt;/tt&gt;&lt;/a&gt;, followed directly by &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;. The convenience function &lt;a href=&quot;QXmlStreamReader.html#readElementText()&quot;&gt;&lt;tt&gt;readElementText&lt;/tt&gt;&lt;/a&gt; can be called to concatenate all content until the corresponding &lt;a href=&quot;QXmlStreamReader.html#TokenType-enum&quot;&gt;&lt;tt&gt;EndElement&lt;/tt&gt;&lt;/a&gt;. Attributes are reported in &lt;a href=&quot;QXmlStreamReader.html#attributes()&quot;&gt;&lt;tt&gt;attributes&lt;/tt&gt;&lt;/a&gt;, namespace declarations in &lt;a href=&quot;QXmlStreamReader.html#namespaceDeclarations()&quot;&gt;&lt;tt&gt;namespaceDeclarations&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="EndElement" doc="/**
&lt;p&gt;The reader reports the end of an element with &lt;a href=&quot;QXmlStreamReader.html#namespaceUri()&quot;&gt;&lt;tt&gt;namespaceUri&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="Characters" doc="/**
&lt;p&gt;The reader reports characters in &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;. If the characters are all white-space, &lt;a href=&quot;QXmlStreamReader.html#isWhitespace()&quot;&gt;&lt;tt&gt;isWhitespace&lt;/tt&gt;&lt;/a&gt; returns true. If the characters stem from a CDATA section, &lt;a href=&quot;QXmlStreamReader.html#isCDATA()&quot;&gt;&lt;tt&gt;isCDATA&lt;/tt&gt;&lt;/a&gt; returns true.&lt;/p&gt;
 */"/>
        <enum-value name="Comment" doc="/**
&lt;p&gt;The reader reports a comment in &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="DTD" doc="/**
&lt;p&gt;The reader reports a DTD in &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;, notation declarations in &lt;a href=&quot;QXmlStreamReader.html#notationDeclarations()&quot;&gt;&lt;tt&gt;notationDeclarations&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="EntityReference" doc="/**
&lt;p&gt;The reader reports an entity reference that could not be resolved. The name of the reference is reported in &lt;a href=&quot;QXmlStreamReader.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;, the replacement text in &lt;a href=&quot;QXmlStreamReader.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="ProcessingInstruction" doc="/**
&lt;p&gt;The reader reports a processing instruction in &lt;a href=&quot;QXmlStreamReader.html#processingInstructionTarget()&quot;&gt;&lt;tt&gt;processingInstructionTarget&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlStreamReader.html#processingInstructionData()&quot;&gt;&lt;tt&gt;processingInstructionData&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
</enum>
</class>