The QXmlStreamAttribute class represents a single XML attribute More...
#include <QXmlStreamAttribute>
Note: All functions in this class are reentrant.
This class was introduced in Qt 4.3.
QXmlStreamAttribute () | |
QXmlStreamAttribute ( const QString & qualifiedName, const QString & value ) | |
QXmlStreamAttribute ( const QString & namespaceUri, const QString & name, const QString & value ) | |
QXmlStreamAttribute ( const QXmlStreamAttribute & other ) | |
~QXmlStreamAttribute () | |
bool | isDefault () const |
QStringRef | name () const |
QStringRef | namespaceUri () const |
QStringRef | prefix () const |
QStringRef | qualifiedName () const |
QStringRef | value () const |
bool | operator!= ( const QXmlStreamAttribute & other ) const |
QXmlStreamAttribute & | operator= ( const QXmlStreamAttribute & other ) |
bool | operator== ( const QXmlStreamAttribute & other ) const |
The QXmlStreamAttribute class represents a single XML attribute
An attribute consists of an optionally empty namespaceUri(), a name(), a value(), and an isDefault() attribute.
The raw XML attribute name is returned as qualifiedName().
Creates an empty attribute.
Constructs an attribute with qualified name qualifiedName and value value.
Constructs an attribute in the namespace described with namespaceUri with name and value value.
Creates a copy of other.
Destructs an attribute.
Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.
Returns the attribute's local name.
Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.
Returns the attribute's namespace prefix.
This function was introduced in Qt 4.4.
See also name() and qualifiedName().
Returns the attribute's qualified name.
A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix(), followed by colon, followed by the attribute'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 qualifiedName(), but the resolved namespaceUri() and the attribute's local name().
Returns the attribute's value.
Compares this attribute with other and returns true if they are not equal; otherwise returns false.
Assigns other to this attribute.
Compares this attribute with other and returns true if they are equal; otherwise returns false.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.