639 while (!reader.atEnd()) {
640 switch (reader.readNext()) {
649 document->
version = reader.documentVersion().toString();
650 document->
encoding = reader.documentEncoding().toString();
661 node->
name = reader.name().toString();
663 document->
root = node;
692 node->
data = reader.text().toString();
706 if (!document || reader.hasError()) {
707 if (document)
D(document);
714 documentNode.
d = document;
QString toString() const
Returns a copy of the string reference as a QString object.
QStringRef value() const
Returns the attribute's value.
The QStack class is a template class that provides a stack.
long ASN1_INTEGER_get ASN1_INTEGER * a
T pop()
Removes the top item from the stack and returns it.
The QXmlStreamAttribute class represents a single XML attribute.
QList< NodeImpl * > attributes
void append(const T &t)
Inserts value at the end of the list.
void append(const T &t)
Inserts value at the end of the vector.
QScriptValue newObject()
Creates a QtScript object of class Object.
QStringRef name() const
Returns the attribute's local name.
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
QList< NodeImpl * > children
void setPrototype(const QScriptValue &prototype)
If this QScriptValue is an object, sets the internal prototype (__proto__ property) of this object to...
bool isEmpty() const
Returns true if the vector has size 0; otherwise returns false.
static QScriptValue prototype(QScriptEngine *)
The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming ...
The QScriptValue class acts as a container for the Qt Script data types.
QScriptValue newVariant(const QVariant &value)
Creates a QtScript object holding the given variant value.
QScriptValue nullValue()
Returns a QScriptValue of the primitive type Null.
T & top()
Returns a reference to the stack's top item.
QStringRef namespaceUri() const
Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not...