Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates > by-pkgid > 9026c9fecbedd778b04292bd6f2d9049 > files > 87

qtxmlpatterns5-doc-5.9.4-1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qxmlname.cpp -->
  <title>QXmlName Class | Qt XML Patterns 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtxmlpatterns-index.html">Qt XML Patterns</a></td><td ><a href="qtxmlpatterns-module.html">C++ Classes</a></td><td >QXmlName</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#comparing-qxmlnames">Comparing QXmlNames</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QXmlName Class</h1>
<!-- $$$QXmlName-brief -->
<p>The <a href="qxmlname.html">QXmlName</a> class represents the name of an XML node, in an efficient, namespace-aware way. <a href="qxmlname.html">QXmlName</a> represents the name of an XML node in a way that is both efficient and safe for comparing names. Normally, an XML node represents an XML element or attribute, but <a href="qxmlname.html">QXmlName</a> can also represent the names of other kinds of nodes, e.g&#x2e;, <a href="qabstractxmlreceiver.html#processingInstruction">QAbstractXmlReceiver::processingInstruction</a>() and <a href="qabstractxmlreceiver.html#namespaceBinding">QAbstractXmlReceiver::namespaceBinding</a>(). <a href="#details">More...</a></p>
<!-- @@@QXmlName -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QXmlName&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += xmlpatterns</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.4</td></tr></table></div><ul>
<li><a href="qxmlname-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#QXmlName">QXmlName</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#QXmlName-1">QXmlName</a></b>(QXmlNamePool &amp;<i>namePool</i>, const QString &amp;<i>localName</i>, const QString &amp;<i>namespaceURI</i> = QString(), const QString &amp;<i>prefix</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#QXmlName-2">QXmlName</a></b>(const QXmlName &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#isNull">isNull</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#localName">localName</a></b>(const QXmlNamePool &amp;<i>namePool</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#namespaceUri">namespaceUri</a></b>(const QXmlNamePool &amp;<i>namePool</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#prefix">prefix</a></b>(const QXmlNamePool &amp;<i>namePool</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#toClarkName">toClarkName</a></b>(const QXmlNamePool &amp;<i>namePool</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#operator-not-eq">operator!=</a></b>(const QXmlName &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QXmlName &amp;</td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#operator-eq">operator=</a></b>(const QXmlName &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#operator-eq-eq">operator==</a></b>(const QXmlName &amp;<i>other</i>) const</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QXmlName </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#fromClarkName">fromClarkName</a></b>(const QString &amp;<i>clarkName</i>, const QXmlNamePool &amp;<i>namePool</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#isNCName">isNCName</a></b>(const QString &amp;<i>candidate</i>)</td></tr>
</table></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qxmlname.html#qHash">qHash</a></b>(const QXmlName &amp;<i>name</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QXmlName-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qxmlname.html">QXmlName</a> class represents the name of an XML node, in an efficient, namespace-aware way. <a href="qxmlname.html">QXmlName</a> represents the name of an XML node in a way that is both efficient and safe for comparing names. Normally, an XML node represents an XML element or attribute, but <a href="qxmlname.html">QXmlName</a> can also represent the names of other kinds of nodes, e.g&#x2e;, <a href="qabstractxmlreceiver.html#processingInstruction">QAbstractXmlReceiver::processingInstruction</a>() and <a href="qabstractxmlreceiver.html#namespaceBinding">QAbstractXmlReceiver::namespaceBinding</a>().</p>
<p>The name of an XML node has three components: The <i>namespace URI</i>, the <i>local name</i>, and the <i>prefix</i>. To see what these refer to in XML, consider the following snippet.</p>
<pre class="cpp">

  &lt;book xmlns:dc='http://purl.org/dc/elements/1.1'
        xmlns='http://example.com/MyDefault'&gt;
      &lt;dc:title&gt;Mobey Dick&lt;/dc:title&gt; ...
  &lt;/book&gt;

</pre>
<p>For the element named <i>book</i>, <a href="qxmlname.html#localName">localName</a>() returns <i>book</i>, <a href="qxmlname.html#namespaceUri">namespaceUri</a>() returns <i>http://example.com/MyDefault</i>, and <a href="qxmlname.html#prefix">prefix</a>() returns an empty string. For the element named <i>title</i>, <a href="qxmlname.html#localName">localName</a>() returns <i>title</i>, <a href="qxmlname.html#namespaceUri">namespaceUri</a>() returns <i>http://purl.org/dc/elements/1.1</i>, and <a href="qxmlname.html#prefix">prefix</a>() returns <i>dc</i>.</p>
<p>To ensure that operations with <a href="qxmlname.html">QXmlName</a> are efficient, e.g&#x2e;, copying names and comparing them, each instance of <a href="qxmlname.html">QXmlName</a> is associated with a <a href="qxmlnamepool.html">name pool</a>, which must be specified at <a href="qxmlname.html">QXmlName</a> construction time. The three components of the <a href="qxmlname.html">QXmlName</a>, i.e&#x2e;, the namespace URI, the local name, and the prefix, are stored in the name pool mapped to identifiers so they can be shared. For this reason, the only way to create a valid instance of <a href="qxmlname.html">QXmlName</a> is to use the class constructor, where the <a href="qxmlnamepool.html">name pool</a>, local name, namespace URI, and prefix must all be specified.</p>
<p>Note that <a href="qxmlname.html">QXmlName</a>'s default constructor constructs a null instance. It is typically used for allocating unused entries in collections of <a href="qxmlname.html">QXmlName</a>.</p>
<p>A side effect of associating each instance of <a href="qxmlname.html">QXmlName</a> with a <a href="qxmlnamepool.html">name pool</a> is that each instance of <a href="qxmlname.html">QXmlName</a> is tied to the <a href="qxmlnamepool.html">QXmlNamePool</a> with which it was created. However, the <a href="qxmlname.html">QXmlName</a> class does not keep track of the name pool, so all the accessor functions, e.g&#x2e;, <a href="qxmlname.html#namespaceUri">namespaceUri</a>(), <a href="qxmlname.html#prefix">prefix</a>(), <a href="qxmlname.html#localName">localName</a>(), and <a href="qxmlname.html#toClarkName">toClarkName</a>() require that the correct name pool be passed to them. Failure to provide the correct name pool to these accessor functions results in undefined behavior.</p>
<p>Note that a <a href="qxmlnamepool.html">name pool</a> is <i>not</i> an XML namespace. One <a href="qxmlnamepool.html">name pool</a> can represent instances of <a href="qxmlname.html">QXmlName</a> from different XML namespaces, and the instances of <a href="qxmlname.html">QXmlName</a> from one XML namespace can be distributed over multiple <a href="qxmlnamepool.html">name pools</a>.</p>
<a name="comparing-qxmlnames"></a><a name="comparing-qxmlnames"></a>
<h3 >Comparing QXmlNames</h3>
<p>To determine what a <a href="qxmlname.html">QXmlName</a> refers to, the <i>namespace URI</i> and the <i>local name</i> are used. The <i>prefix</i> is not used because the prefix is simply a shorthand name for use in place of the normally much longer namespace URI. Nor is the prefix used in name comparisons. For example, the following two element nodes represent the same element and compare equal.</p>
<pre class="cpp">

  &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;/&gt;

</pre>
<pre class="cpp">

  &lt;x:svg xmlns:x=&quot;http://www.w3.org/2000/svg&quot;/&gt;

</pre>
<p>Although the second name has the prefix <i>x</i>, the two names compare equal as instances of <a href="qxmlname.html">QXmlName</a>, because the prefix is not used in the comparison.</p>
<p>A local name can never be an empty string, although the prefix and namespace URI can. If the prefix is not empty, the namespace URI cannot be empty. Local names and prefixes must be valid <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCNames</a>, e.g&#x2e;, <i>abc.def</i> or <i>abc123</i>.</p>
<p><a href="qxmlname.html">QXmlName</a> represents what is sometimes called an <i>expanded QName</i>, or simply a QName.</p>
</div>
<p><b>See also </b><a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">Namespaces in XML 1.0 (Second Edition), [4] NCName</a>.</p>
<!-- @@@QXmlName -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QXmlName[overload1]$$$QXmlName -->
<h3 class="fn" id="QXmlName"><a name="QXmlName"></a>QXmlName::<span class="name">QXmlName</span>()</h3>
<p>Constructs an uninitialized <a href="qxmlname.html">QXmlName</a>. To build a valid <a href="qxmlname.html">QXmlName</a>, you normally use the other constructor, which takes a <a href="qxmlnamepool.html">name pool</a>, namespace URI, local name, and prefix as parameters. But you can also use this constructor to build a null <a href="qxmlname.html">QXmlName</a> and then assign an existing <a href="qxmlname.html">QXmlName</a> to it.</p>
<p><b>See also </b><a href="qxmlname.html#isNull">isNull</a>().</p>
<!-- @@@QXmlName -->
<!-- $$$QXmlName$$$QXmlNameQXmlNamePool&constQString&constQString&constQString& -->
<h3 class="fn" id="QXmlName-1"><a name="QXmlName-1"></a>QXmlName::<span class="name">QXmlName</span>(<span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>, const <span class="type">QString</span> &amp;<i>localName</i>, const <span class="type">QString</span> &amp;<i>namespaceURI</i> = QString(), const <span class="type">QString</span> &amp;<i>prefix</i> = QString())</h3>
<p>Constructs a <a href="qxmlname.html">QXmlName</a> instance that inserts <i>localName</i>, <i>namespaceURI</i> and <i>prefix</i> into <i>namePool</i> if they aren't already there. The accessor functions <a href="qxmlname.html#namespaceUri">namespaceUri</a>(), <a href="qxmlname.html#prefix">prefix</a>(), <a href="qxmlname.html#localName">localName</a>(), and <a href="qxmlname.html#toClarkName">toClarkName</a>() must be passed the <i>namePool</i> used here, so the <i>namePool</i> must remain in scope while the accessor functions might be used. However, two instances can be compared with <i>==</i> or <i>!=</i> and copied without the <i>namePool</i>.</p>
<p>The user guarantees that the string components are valid for a QName. In particular, the local name, and the prefix (if present), must be valid <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCNames</a>. The function <a href="qxmlname.html#isNCName">isNCName</a>() can be used to test validity of these names. The namespace URI should be an absolute URI. QUrl::isRelative() can be used to test whether the namespace URI is relative or absolute. Finally, providing a prefix is not valid when no namespace URI is provided.</p>
<p><i>namePool</i> is not copied. Nor is the reference to it retained in this instance. This constructor inserts the three strings into <i>namePool</i>.</p>
<!-- @@@QXmlName -->
<!-- $$$QXmlName$$$QXmlNameconstQXmlName& -->
<h3 class="fn" id="QXmlName-2"><a name="QXmlName-2"></a>QXmlName::<span class="name">QXmlName</span>(const <span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<p>This function was introduced in  Qt 5.9.</p>
<p><b>See also </b><a href="qxmlname.html#operator-eq">operator=</a>().</p>
<!-- @@@QXmlName -->
<!-- $$$fromClarkName[overload1]$$$fromClarkNameconstQString&constQXmlNamePool& -->
<h3 class="fn" id="fromClarkName"><a name="fromClarkName"></a><code>[static] </code><span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> QXmlName::<span class="name">fromClarkName</span>(const <span class="type">QString</span> &amp;<i>clarkName</i>, const <span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>)</h3>
<p>Converts <i>clarkName</i> into a <a href="qxmlname.html">QXmlName</a>, inserts into <i>namePool</i>, and returns it.</p>
<p>A clark name is a way to present a full QName with only one string, where the namespace cannot contain braces. Here are a couple of examples:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Clark Name</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td ><code>html</code></td><td >The local name <code>html</code>, in no namespace</td></tr>
<tr valign="top" class="even"><td ><code>http://www.w3.org/1999/xhtml</code>html</td><td >The local name <code>html</code>, in the XHTML namespace</td></tr>
<tr valign="top" class="odd"><td ><code>http://www.w3.org/1999/xhtml</code>my:html</td><td >The local name <code>html</code>, in the XHTML namespace, with the prefix <code>my</code></td></tr>
</table></div>
<p>If the namespace contains braces, the returned value is either invalid or has undefined content.</p>
<p>If <i>clarkName</i> is an invalid name, a default constructed <a href="qxmlname.html">QXmlName</a> is returned.</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="qxmlname.html#toClarkName">toClarkName</a>().</p>
<!-- @@@fromClarkName -->
<!-- $$$isNCName[overload1]$$$isNCNameconstQString& -->
<h3 class="fn" id="isNCName"><a name="isNCName"></a><code>[static] </code><span class="type">bool</span> QXmlName::<span class="name">isNCName</span>(const <span class="type">QString</span> &amp;<i>candidate</i>)</h3>
<p>Returns true if <i>candidate</i> is an <code>NCName</code>. An <code>NCName</code> is a string that can be used as a name in XML and <a href="xmlprocessing.html">XQuery</a>, e.g&#x2e;, the prefix or local name in an element or attribute, or the name of a variable.</p>
<p><b>See also </b><a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">Namespaces in XML 1.0 (Second Edition), [4] NCName</a>.</p>
<!-- @@@isNCName -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn" id="isNull"><a name="isNull"></a><span class="type">bool</span> QXmlName::<span class="name">isNull</span>() const</h3>
<p>Returns true if this <a href="qxmlname.html">QXmlName</a> is not initialized with a valid combination of <i>namespace URI</i>, <i>local name</i>, and <i>prefix</i>.</p>
<p>A valid local name is always required. The prefix and namespace URI can be empty, but if the prefix is not empty, the namespace URI must not be empty. Local names and prefixes must be valid <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCNames</a>, e.g&#x2e;, <i>abc.def</i> or <i>abc123</i>.</p>
<!-- @@@isNull -->
<!-- $$$localName[overload1]$$$localNameconstQXmlNamePool& -->
<h3 class="fn" id="localName"><a name="localName"></a><span class="type">QString</span> QXmlName::<span class="name">localName</span>(const <span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>) const</h3>
<p>Returns the local name.</p>
<p>Note that for efficiency, the local name string is not stored in the <a href="qxmlname.html">QXmlName</a> but in the <a href="qxmlnamepool.html">QXmlNamePool</a> that was passed to the constructor. Hence, that same <i>namePool</i> must be passed to this function, so it can be used for looking up the local name.</p>
<!-- @@@localName -->
<!-- $$$namespaceUri[overload1]$$$namespaceUriconstQXmlNamePool& -->
<h3 class="fn" id="namespaceUri"><a name="namespaceUri"></a><span class="type">QString</span> QXmlName::<span class="name">namespaceUri</span>(const <span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>) const</h3>
<p>Returns the namespace URI.</p>
<p>Note that for efficiency, the namespace URI string is not stored in the <a href="qxmlname.html">QXmlName</a> but in the <a href="qxmlnamepool.html">QXmlNamePool</a> that was passed to the constructor. Hence, that same <i>namePool</i> must be passed to this function, so it can be used for looking up the namespace URI.</p>
<!-- @@@namespaceUri -->
<!-- $$$prefix[overload1]$$$prefixconstQXmlNamePool& -->
<h3 class="fn" id="prefix"><a name="prefix"></a><span class="type">QString</span> QXmlName::<span class="name">prefix</span>(const <span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>) const</h3>
<p>Returns the prefix.</p>
<p>Note that for efficiency, the prefix string is not stored in the <a href="qxmlname.html">QXmlName</a> but in the <a href="qxmlnamepool.html">QXmlNamePool</a> that was passed to the constructor. Hence, that same <i>namePool</i> must be passed to this function, so it can be used for looking up the prefix.</p>
<!-- @@@prefix -->
<!-- $$$toClarkName[overload1]$$$toClarkNameconstQXmlNamePool& -->
<h3 class="fn" id="toClarkName"><a name="toClarkName"></a><span class="type">QString</span> QXmlName::<span class="name">toClarkName</span>(const <span class="type"><a href="qxmlnamepool.html">QXmlNamePool</a></span> &amp;<i>namePool</i>) const</h3>
<p>Returns this <a href="qxmlname.html">QXmlName</a> formatted as a Clark Name. For example, if the local name is <code>html</code>, the prefix is <code>x</code>, and the namespace URI is <code>http://www.w3.org/1999/xhtml/</code>, then the Clark Name returned is:</p>
<pre class="cpp">

  {http:<span class="comment">//www.w3.org/1999/xhtml/}x:html.</span>

</pre>
<p>If the local name is <i>MyWidget</i> and the namespace is empty, the Clark Name returned is:</p>
<pre class="cpp">

  MyWidget

</pre>
<p>Note that for efficiency, the namespace URI, local name, and prefix strings are not stored in the <a href="qxmlname.html">QXmlName</a> but in the <a href="qxmlnamepool.html">QXmlNamePool</a> that was passed to the constructor. Hence, that same <i>namePool</i> must be passed to this function, so it can be used for looking up the three string components.</p>
<p>This function can be useful for debugging.</p>
<p><b>See also </b><a href="http://www.jclark.com/xml/xmlns.htm">XML Namespaces, James Clark</a> and <a href="qxmlname.html#fromClarkName">fromClarkName</a>().</p>
<!-- @@@toClarkName -->
<!-- $$$operator!=[overload1]$$$operator!=constQXmlName& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QXmlName::<span class="name">operator!=</span>(const <span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;<i>other</i>) const</h3>
<p>Returns true if this <a href="qxmlname.html">QXmlName</a> is <i>not</i> equal to <i>other</i>; otherwise false. Two QXmlNames are equal if their namespace URIs are the same <i>and</i> their local names are the same. They are not equal if either their namespace URIs differ or their local names differ. Their prefixes are ignored.</p>
<p>Note that it is meaningless to compare two instances of <a href="qxmlname.html">QXmlName</a> that were created with different <a href="qxmlnamepool.html">name pools</a>, but the attempt is not detected and the behavior is undefined.</p>
<p><b>See also </b><a href="qxmlname.html#operator-eq-eq">operator==</a>().</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQXmlName& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;QXmlName::<span class="name">operator=</span>(const <span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;<i>other</i>)</h3>
<p>Assigns <i>other</i> to <i>this</i> and returns <i>this</i>.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQXmlName& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QXmlName::<span class="name">operator==</span>(const <span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;<i>other</i>) const</h3>
<p>Returns true if this <a href="qxmlname.html">QXmlName</a> is equal to <i>other</i>; otherwise false. Two QXmlNames are equal if their namespace URIs are the same <i>and</i> their local names are the same. The prefixes are ignored.</p>
<p>Note that it is meaningless to compare two instances of <a href="qxmlname.html">QXmlName</a> that were created with different <a href="qxmlnamepool.html">name pools</a>, but the attempt is not detected and the behavior is undefined.</p>
<p><b>See also </b><a href="qxmlname.html#operator-not-eq">operator!=</a>().</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$qHash[overload1]$$$qHashconstQXmlName& -->
<h3 class="fn" id="qHash"><a name="qHash"></a><span class="type">uint</span> <span class="name">qHash</span>(const <span class="type"><a href="qxmlname.html#QXmlName">QXmlName</a></span> &amp;<i>name</i>)</h3>
<p>Computes a hash key from the local name and the namespace URI in <i>name</i>. The prefix in <i>name</i> is not used in the computation.</p>
<p>This function was introduced in  Qt 4.4.</p>
<!-- @@@qHash -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>