The QXmlAttributes class provides XML attributes. More...
#include <qxml.h>
Public Member Functions | |
QXmlAttributes () | |
virtual | ~QXmlAttributes () |
int | index (const QString &qName) const |
int | index (const QString &uri, const QString &localPart) const |
int | length () const |
QString | localName (int index) const |
QString | qName (int index) const |
QString | uri (int index) const |
QString | type (int index) const |
QString | type (const QString &qName) const |
QString | type (const QString &uri, const QString &localName) const |
QString | value (int index) const |
QString | value (const QString &qName) const |
QString | value (const QString &uri, const QString &localName) const |
Private Attributes | |
QStringList | qnameList |
QStringList | uriList |
QStringList | localnameList |
QStringList | valueList |
Friends | |
class | QXmlSimpleReader |
The QXmlAttributes class provides XML attributes.
XML
If attributes are reported by QXmlContentHandler::startElement() this class is used to pass the attribute values. It provides you with different functions to access the attribute names and values.
|
inline |
|
inlinevirtual |
int QXmlAttributes::index | ( | const QString & | qName | ) | const |
Look up the index of an attribute by an XML 1.0 qualified name.
Returns the index of the attribute (starting with 0) or -1 if it wasn't found.
See also the namespace description.
Definition at line 563 of file qxml.cpp.
Looks up the index of an attribute by a namespace name.
uri specifies the namespace URI, or the empty string if the name has no namespace URI. localPart specifies the attribute's local name.
Returns the index of the attribute (starting with 0) or -1 if it wasn't found.
See also the namespace description.
Definition at line 579 of file qxml.cpp.
int QXmlAttributes::length | ( | ) | const |
QString QXmlAttributes::localName | ( | int | index | ) | const |
Looks up an attribute's local name by index (starting with 0).
See also the namespace description.
Definition at line 602 of file qxml.cpp.
QString QXmlAttributes::qName | ( | int | index | ) | const |
Looks up an attribute's XML 1.0 qualified name by index (starting with 0).
See also the namespace description.
Definition at line 612 of file qxml.cpp.
QString QXmlAttributes::type | ( | int | index | ) | const |
Looks up an attribute's type by namespace name.
The first parameter specifies the namespace URI, or the empty string if the name has no namespace URI. The second parameter specifies the attribute's local name.
At the moment only 'CDATA' is returned.
QString QXmlAttributes::uri | ( | int | index | ) | const |
Looks up an attribute's namespace URI by index (starting with 0).
See also the namespace description.
Definition at line 622 of file qxml.cpp.
QString QXmlAttributes::value | ( | int | index | ) | const |
Looks up an attribute's value by XML 1.0 qualified name.
See also the namespace description.
Definition at line 674 of file qxml.cpp.
Looks up an attribute's value by namespace name.
uri specifies the namespace URI, or the empty string if the name has no namespace URI. localName specifies the attribute's local name.
See also the namespace description.
Definition at line 690 of file qxml.cpp.
|
friend |
|
private |
|
private |
|
private |
|
private |