QXmlStreamAttribute露

The QXmlStreamAttribute class represents a single XML attribute. More鈥�

Inheritance diagram of PySide2.QtCore.QXmlStreamAttribute

Synopsis露

Functions露

Detailed Description露

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() .

class PySide2.QtCore.QXmlStreamAttribute露

PySide2.QtCore.QXmlStreamAttribute(namespaceUri, name, value)

PySide2.QtCore.QXmlStreamAttribute(qualifiedName, value)

PySide2.QtCore.QXmlStreamAttribute(arg__1)

param namespaceUri:

str

param qualifiedName:

str

param name:

str

param arg__1:

PySide2.QtCore.QXmlStreamAttribute

param value:

str

Creates an empty attribute.

Constructs an attribute in the namespace described with namespaceUri with name and value value .

Constructs an attribute with qualified name qualifiedName and value value .

PySide2.QtCore.QXmlStreamAttribute.isDefault()露
Return type:

bool

Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false .

PySide2.QtCore.QXmlStreamAttribute.name()露
Return type:

QStringRef

Returns the attribute鈥檚 local name.

PySide2.QtCore.QXmlStreamAttribute.namespaceUri()露
Return type:

QStringRef

Returns the attribute鈥檚 resolved , or an empty string reference if the attribute does not have a defined namespace.

PySide2.QtCore.QXmlStreamAttribute.__ne__(other)露
Parameters:

other 鈥� PySide2.QtCore.QXmlStreamAttribute

Return type:

bool

Compares this attribute with other and returns true if they are not equal; otherwise returns false .

PySide2.QtCore.QXmlStreamAttribute.__eq__(other)露
Parameters:

other 鈥� PySide2.QtCore.QXmlStreamAttribute

Return type:

bool

Compares this attribute with other and returns true if they are equal; otherwise returns false .

PySide2.QtCore.QXmlStreamAttribute.prefix()露
Return type:

QStringRef

Returns the attribute鈥檚 namespace prefix.

PySide2.QtCore.QXmlStreamAttribute.qualifiedName()露
Return type:

QStringRef

Returns the attribute鈥檚 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鈥檚 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鈥檛 use , but the resolved namespaceUri() and the attribute鈥檚 local name() .

PySide2.QtCore.QXmlStreamAttribute.value()露
Return type:

QStringRef

Returns the attribute鈥檚 value.