<class name="QDomElement" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDomElement.html#QDomElement(com.trolltech.qt.xml.QDomElement)&quot;&gt;&lt;tt&gt;QDomElement&lt;/tt&gt;&lt;/a&gt; class represents one element in the DOM tree.&lt;/p&gt;
&lt;p&gt;Elements have a &lt;a href=&quot;QDomElement.html#tagName()&quot;&gt;&lt;tt&gt;tagName&lt;/tt&gt;&lt;/a&gt; and zero or more attributes associated with them. The tag name can be changed with &lt;a href=&quot;QDomElement.html#setTagName(java.lang.String)&quot;&gt;&lt;tt&gt;setTagName&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Element attributes are represented by &lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt; objects that can be queried using the &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomElement.html#attributeNode(java.lang.String)&quot;&gt;&lt;tt&gt;attributeNode&lt;/tt&gt;&lt;/a&gt; functions. You can set attributes with the &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt; functions. Attributes can be removed with &lt;a href=&quot;QDomElement.html#removeAttribute(java.lang.String)&quot;&gt;&lt;tt&gt;removeAttribute&lt;/tt&gt;&lt;/a&gt;. There are namespace-aware equivalents to these functions, i.e&amp;#x2e; &lt;a href=&quot;QDomElement.html#setAttributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setAttributeNS&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomElement.html#setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNodeNS&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomElement.html#removeAttributeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;removeAttributeNS&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to access the text of a node use &lt;a href=&quot;QDomElement.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;, e.g&amp;#x2e;&lt;/p&gt;
&lt;pre&gt;    QDomElement e = &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;...
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt;...
    QString s = e.text()&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;QDomElement.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; function operates recursively to find the text (since not all elements contain text). If you want to find all the text in all of a node's children, iterate over the children looking for &lt;a href=&quot;QDomText.html&quot;&gt;&lt;tt&gt;QDomText&lt;/tt&gt;&lt;/a&gt; nodes, e.g&amp;#x2e;&lt;/p&gt;
&lt;pre&gt;    QString text;
    QDomElement element = doc.documentElement();
    for(QDomNode n = element.firstChild(); !n.isNull(); n = n.nextSibling())
    {
        QDomText t = n.toText();
        if (!t.isNull())
            text += t.data();
    }&lt;/pre&gt;
&lt;p&gt;Note that we attempt to convert each node to a text node and use &lt;a href=&quot;QDomElement.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; rather than using &lt;a href=&quot;QDomNode.html#firstChild()&quot;&gt;&lt;tt&gt;firstChild&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QDomNode.html#toText()&quot;&gt;&lt;tt&gt;toText&lt;/tt&gt;&lt;/a&gt;.data() or n.&lt;a href=&quot;QDomNode.html#toText()&quot;&gt;&lt;tt&gt;toText&lt;/tt&gt;&lt;/a&gt;.data() directly on the node, because the node may not be a text element.&lt;/p&gt;
&lt;p&gt;You can get a list of all the decendents of an element which have a specified tag name with &lt;a href=&quot;QDomElement.html#elementsByTagName(java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagName&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDomElement.html#elementsByTagNameNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagNameNS&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To browse the elements of a dom document use &lt;a href=&quot;QDomNode.html#firstChildElement(java.lang.String)&quot;&gt;&lt;tt&gt;firstChildElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomNode.html#lastChildElement(java.lang.String)&quot;&gt;&lt;tt&gt;lastChildElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomNode.html#nextSiblingElement(java.lang.String)&quot;&gt;&lt;tt&gt;nextSiblingElement&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomNode.html#previousSiblingElement(java.lang.String)&quot;&gt;&lt;tt&gt;previousSiblingElement&lt;/tt&gt;&lt;/a&gt;. For example, to iterate over all child elements called &amp;quot;entry&amp;quot; in a root element called &amp;quot;database&amp;quot;, you can use:&lt;/p&gt;
&lt;pre&gt;    QDomDocument doc = &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; ...
    QDomElement root = doc.firstChildElement(&amp;quot;database&amp;quot;);
    QDomElement elt = root.firstChildElement(&amp;quot;entry&amp;quot;);
    for (; !elt.isNull(); elt = elt.nextSiblingElelement(&amp;quot;entry&amp;quot;)) {
        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; ...
    }&lt;/pre&gt;
&lt;p&gt;For further information about the Document Object Model see &lt;a href=&quot;http://www.w3.org/TR/REC-DOM-Level-1/&quot;&gt;Level 1&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/&quot;&gt;Level 2 Core&lt;/tt&gt;&lt;/a&gt;. For a more general introduction of the DOM implementation see the &lt;a href=&quot;QDomDocument.html&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; documentation.&lt;/p&gt;
 */">
    <method name="public QDomElement()" doc="/**
&lt;p&gt;Constructs an empty element. Use the QDomDocument::createElement() function to construct elements with content.&lt;/p&gt;
 */"/>
    <method name="public QDomElement(com.trolltech.qt.xml.QDomElement x)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;x&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use &lt;a href=&quot;QDomNode.html#cloneNode(boolean)&quot;&gt;&lt;tt&gt;cloneNode&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String attribute(java.lang.String name, java.lang.String defValue)" doc="/**
&lt;p&gt;Returns the attribute called &lt;tt&gt;name&lt;/tt&gt;. If the attribute does not exist &lt;tt&gt;defValue&lt;/tt&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNode(java.lang.String)&quot;&gt;&lt;tt&gt;attributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String attribute(java.lang.String name)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;attribute&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;name&lt;/tt&gt;, QString()). */"/>
    <method name="public final java.lang.String attributeNS(java.lang.String nsURI, java.lang.String localName, java.lang.String defValue)" doc="/**
&lt;p&gt;Returns the attribute with the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt;. If the attribute does not exist &lt;tt&gt;defValue&lt;/tt&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setAttributeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNodeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNodeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNodeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String attributeNS(java.lang.String nsURI, java.lang.String localName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDomElement.html#attributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNS&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;nsURI&lt;/tt&gt;, &lt;tt&gt;localName&lt;/tt&gt;, QString()). */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr attributeNode(java.lang.String name)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt; object that corresponds to the attribute called &lt;tt&gt;name&lt;/tt&gt;. If no such attribute exists a null attribute&lt;/tt&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNodeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNodeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr attributeNodeNS(java.lang.String nsURI, java.lang.String localName)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt; object that corresponds to the attribute with the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt;. If no such attribute exists a null attribute&lt;/tt&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNodeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomNamedNodeMap attributes()" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDomNamedNodeMap.html&quot;&gt;&lt;tt&gt;QDomNamedNodeMap&lt;/tt&gt;&lt;/a&gt; containing all this element's attributes.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNode(java.lang.String)&quot;&gt;&lt;tt&gt;attributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomNodeList elementsByTagName(java.lang.String tagname)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDomNodeList.html&quot;&gt;&lt;tt&gt;QDomNodeList&lt;/tt&gt;&lt;/a&gt; containing all descendent elements of this element that are called &lt;tt&gt;tagname&lt;/tt&gt;. The order they are in the node list is the order they are encountered in a preorder traversal of the element tree.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#elementsByTagNameNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagNameNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDomDocument::elementsByTagName&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomNodeList elementsByTagNameNS(java.lang.String nsURI, java.lang.String localName)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDomNodeList.html&quot;&gt;&lt;tt&gt;QDomNodeList&lt;/tt&gt;&lt;/a&gt; containing all the descendent elements of this element with the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt;. The order they are in the node list is the order they are encountered in a preorder traversal of the element tree.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#elementsByTagName(java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDomDocument::elementsByTagNameNS&lt;/tt&gt; */"/>
    <method name="public final boolean hasAttribute(java.lang.String name)" doc="/**
&lt;p&gt;Returns true if this element has an attribute called &lt;tt&gt;name&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; This function does not take the presence of namespaces into account. As a result, the specified name will be tested against fully-qualified attribute names that include any namespace prefixes that may be present.&lt;/p&gt;
&lt;p&gt;Use &lt;a href=&quot;QDomElement.html#hasAttributeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;hasAttributeNS&lt;/tt&gt;&lt;/a&gt; to explicitly test for attributes with specific namespaces and names.&lt;/p&gt;
 */"/>
    <method name="public final boolean hasAttributeNS(java.lang.String nsURI, java.lang.String localName)" doc="/**
&lt;p&gt;Returns true if this element has an attribute with the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final void removeAttribute(java.lang.String name)" doc="/**
&lt;p&gt;Removes the attribute called name &lt;tt&gt;name&lt;/tt&gt; from this element.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#removeAttributeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;removeAttributeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeAttributeNS(java.lang.String nsURI, java.lang.String localName)" doc="/**
&lt;p&gt;Removes the attribute with the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt; from this element.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setAttributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setAttributeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#attributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#removeAttribute(java.lang.String)&quot;&gt;&lt;tt&gt;removeAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr removeAttributeNode(com.trolltech.qt.xml.QDomAttr oldAttr)" doc="/**
&lt;p&gt;Removes the attribute &lt;tt&gt;oldAttr&lt;/tt&gt; from the element and returns it.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attributeNode(java.lang.String)&quot;&gt;&lt;tt&gt;attributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAttribute(java.lang.String name, int value)"/>
    <method name="public final void setAttribute(java.lang.String name, double value)"/>
    <method name="public final void setAttribute(java.lang.String name, java.lang.String value)" doc="/**
&lt;p&gt;Adds an attribute called &lt;tt&gt;name&lt;/tt&gt; with value &lt;tt&gt;value&lt;/tt&gt;. If an attribute with the same name exists, its value is replaced by &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attribute(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setAttributeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAttribute(java.lang.String name, long value)"/>
    <method name="public final void setAttribute(java.lang.String name, float value)"/>
    <method name="public final void setAttributeNS(java.lang.String nsURI, java.lang.String qName, int value)"/>
    <method name="public final void setAttributeNS(java.lang.String nsURI, java.lang.String qName, long value)"/>
    <method name="public final void setAttributeNS(java.lang.String nsURI, java.lang.String qName, double value)"/>
    <method name="public final void setAttributeNS(java.lang.String nsURI, java.lang.String qName, java.lang.String value)" doc="/**
&lt;p&gt;Adds an attribute with the qualified name &lt;tt&gt;qName&lt;/tt&gt; and the namespace URI &lt;tt&gt;nsURI&lt;/tt&gt; with the value &lt;tt&gt;value&lt;/tt&gt;. If an attribute with the same local name and namespace URI exists, its prefix is replaced by the prefix of &lt;tt&gt;qName&lt;/tt&gt; and its value is repaced by &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Although &lt;tt&gt;qName&lt;/tt&gt; is the qualified name, the local name is used to decide if an existing attribute's value should be replaced.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNodeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr setAttributeNode(com.trolltech.qt.xml.QDomAttr newAttr)" doc="/**
&lt;p&gt;Adds the attribute &lt;tt&gt;newAttr&lt;/tt&gt; to this element.&lt;/p&gt;
&lt;p&gt;If the element has another attribute that has the same name as &lt;tt&gt;newAttr&lt;/tt&gt;, this function replaces that attribute and returns it; otherwise the function returns a null attribute&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attributeNode(java.lang.String)&quot;&gt;&lt;tt&gt;attributeNode&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttribute(java.lang.String, float)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNodeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr setAttributeNodeNS(com.trolltech.qt.xml.QDomAttr newAttr)" doc="/**
&lt;p&gt;Adds the attribute &lt;tt&gt;newAttr&lt;/tt&gt; to this element.&lt;/p&gt;
&lt;p&gt;If the element has another attribute that has the same local name and namespace URI as &lt;tt&gt;newAttr&lt;/tt&gt;, this function replaces that attribute and returns it; otherwise the function returns a null attribute&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#attributeNodeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;attributeNodeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNS(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setAttributeNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDomElement.html#setAttributeNode(com.trolltech.qt.xml.QDomAttr)&quot;&gt;&lt;tt&gt;setAttributeNode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTagName(java.lang.String name)" doc="/**
&lt;p&gt;Sets this element's tag name to &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#tagName()&quot;&gt;&lt;tt&gt;tagName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String tagName()" doc="/**
&lt;p&gt;Returns the tag name of this element. For an XML element like this:&lt;/p&gt;
&lt;pre&gt;    &amp;lt;img src=&amp;quot;myimg.png&amp;quot;&amp;gt;&lt;/pre&gt;
&lt;p&gt;the tagname would return &amp;quot;img&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QDomElement.html#setTagName(java.lang.String)&quot;&gt;&lt;tt&gt;setTagName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the element's text or an empty string.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    &amp;lt;h1&amp;gt;Hello &amp;lt;b&amp;gt;Qt&amp;lt;/b&amp;gt; &amp;lt;![CDATA[&amp;lt;xml is cool&amp;gt;]]&amp;gt;&amp;lt;/h1&amp;gt;&lt;/pre&gt;
&lt;p&gt;The function &lt;a href=&quot;QDomElement.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; of the &lt;a href=&quot;QDomElement.html#QDomElement(com.trolltech.qt.xml.QDomElement)&quot;&gt;&lt;tt&gt;QDomElement&lt;/tt&gt;&lt;/a&gt; for the &lt;tt&gt;&amp;lt;h1&amp;gt;&lt;/tt&gt; tag, will return the following text:&lt;/p&gt;
&lt;pre&gt;    Hello Qt &amp;amp;lt;xml is cool&amp;amp;gt;&lt;/pre&gt;
&lt;p&gt;Comments are ignored by this function. It only evaluates &lt;a href=&quot;QDomText.html&quot;&gt;&lt;tt&gt;QDomText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomCDATASection.html&quot;&gt;&lt;tt&gt;QDomCDATASection&lt;/tt&gt;&lt;/a&gt; objects.&lt;/p&gt;
 */"/>
</class>
