1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
3
<html><head><title>QXmlStreamAttribute Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
4
a:link { color: #004faf; text-decoration: none }
5
a:visited { color: #672967; text-decoration: none }
6
td.postheader { font-family: sans-serif }
7
tr.address { font-family: sans-serif }
8
body { background: #ffffff; color: black; }
9
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QXmlStreamAttribute Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QXmlStreamAttribute class represents a single XML attribute
10
<a href="#details">More...</a></p>
12
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-2">__init__</a></b> (<i>self</i>, QString <i>qualifiedName</i>, QString <i>value</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-3">__init__</a></b> (<i>self</i>, QString <i>namespaceUri</i>, QString <i>name</i>, QString <i>value</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-4">__init__</a></b> (<i>self</i>, QXmlStreamAttribute)</li><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#isDefault">isDefault</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#name">name</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#prefix">prefix</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#value">value</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#__eq__">__eq__</a></b> (<i>self</i>, QXmlStreamAttribute <i>other</i>)</li><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#__ne__">__ne__</a></b> (<i>self</i>, QXmlStreamAttribute <i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QXmlStreamAttribute class represents a single XML
14
<p>An attribute consists of an optionally empty <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>(), a
15
<a href="qxmlstreamattribute.html#name">name</a>(), a <a href="qxmlstreamattribute.html#value">value</a>(), and an <a href="qxmlstreamattribute.html#isDefault">isDefault</a>() attribute.</p>
16
<p>The raw XML attribute name is returned as <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>
17
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QXmlStreamAttribute" />QXmlStreamAttribute.__init__ (<i>self</i>)</h3><p>Creates an empty attribute.</p>
20
<h3 class="fn"><a name="QXmlStreamAttribute-2" />QXmlStreamAttribute.__init__ (<i>self</i>, QString <i>qualifiedName</i>, QString <i>value</i>)</h3><p>Constructs an attribute with qualified name <i>qualifiedName</i>
21
and value <i>value</i>.</p>
24
<h3 class="fn"><a name="QXmlStreamAttribute-3" />QXmlStreamAttribute.__init__ (<i>self</i>, QString <i>namespaceUri</i>, QString <i>name</i>, QString <i>value</i>)</h3><p>Constructs an attribute in the namespace described with
25
<i>namespaceUri</i> with <i>name</i> and value <i>value</i>.</p>
28
<h3 class="fn"><a name="QXmlStreamAttribute-4" />QXmlStreamAttribute.__init__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a>)</h3><p>Creates a copy of <i>other</i>.</p>
31
<h3 class="fn"><a name="isDefault" />bool QXmlStreamAttribute.isDefault (<i>self</i>)</h3><p>Returns true if the parser added this attribute with a default
32
value following an ATTLIST declaration in the DTD; otherwise
36
<h3 class="fn"><a name="name" />QStringRef QXmlStreamAttribute.name (<i>self</i>)</h3><p>Returns the attribute's local name.</p>
39
<h3 class="fn"><a name="namespaceUri" />QStringRef QXmlStreamAttribute.namespaceUri (<i>self</i>)</h3><p>Returns the attribute's resolved namespaceUri, or an empty
40
string reference if the attribute does not have a defined
44
<h3 class="fn"><a name="prefix" />QStringRef QXmlStreamAttribute.prefix (<i>self</i>)</h3><p>Returns the attribute's namespace prefix.</p>
45
<p>This function was introduced in Qt 4.4.</p>
46
<p><b>See also</b> <a href="qxmlstreamattribute.html#name">name</a>() and <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>
49
<h3 class="fn"><a name="qualifiedName" />QStringRef QXmlStreamAttribute.qualifiedName (<i>self</i>)</h3><p>Returns the attribute's qualified name.</p>
50
<p>A qualified name is the raw name of an attribute in the XML
51
data. It consists of the namespace <a href="qxmlstreamattribute.html#prefix">prefix</a>(), followed by colon,
52
followed by the attribute's local <a href="qxmlstreamattribute.html#name">name</a>(). Since the namespace
53
prefix is not unique (the same prefix can point to different
54
namespaces and different prefixes can point to the same namespace),
55
you shouldn't use qualifiedName(), but the resolved <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>() and the
56
attribute's local <a href="qxmlstreamattribute.html#name">name</a>().</p>
59
<h3 class="fn"><a name="value" />QStringRef QXmlStreamAttribute.value (<i>self</i>)</h3><p>Returns the attribute's value.</p>
62
<h3 class="fn"><a name="__eq__" />bool QXmlStreamAttribute.__eq__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a> <i>other</i>)</h3><h3 class="fn"><a name="__ne__" />bool QXmlStreamAttribute.__ne__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a> <i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'