<class name="QDomNode" doc="/** <p>The <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> class is the base class for all the nodes in a DOM tree.</p> <p>Many functions in the DOM return a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a>.</p> <p>You can find out the type of a node using <a href="QDomNode.html#isAttr()"><tt>isAttr</tt></a>, <a href="QDomNode.html#isCDATASection()"><tt>isCDATASection</tt></a>, <a href="QDomNode.html#isDocumentFragment()"><tt>isDocumentFragment</tt></a>, <a href="QDomNode.html#isDocument()"><tt>isDocument</tt></a>, <a href="QDomNode.html#isDocumentType()"><tt>isDocumentType</tt></a>, <a href="QDomNode.html#isElement()"><tt>isElement</tt></a>, <a href="QDomNode.html#isEntityReference()"><tt>isEntityReference</tt></a>, <a href="QDomNode.html#isText()"><tt>isText</tt></a>, <a href="QDomNode.html#isEntity()"><tt>isEntity</tt></a>, <a href="QDomNode.html#isNotation()"><tt>isNotation</tt></a>, <a href="QDomNode.html#isProcessingInstruction()"><tt>isProcessingInstruction</tt></a>, <a href="QDomNode.html#isCharacterData()"><tt>isCharacterData</tt></a> and <a href="QDomNode.html#isComment()"><tt>isComment</tt></a>.</p> <p>A <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> can be converted into one of its subclasses using <a href="QDomNode.html#toAttr()"><tt>toAttr</tt></a>, <a href="QDomNode.html#toCDATASection()"><tt>toCDATASection</tt></a>, <a href="QDomNode.html#toDocumentFragment()"><tt>toDocumentFragment</tt></a>, <a href="QDomNode.html#toDocument()"><tt>toDocument</tt></a>, <a href="QDomNode.html#toDocumentType()"><tt>toDocumentType</tt></a>, <a href="QDomNode.html#toElement()"><tt>toElement</tt></a>, <a href="QDomNode.html#toEntityReference()"><tt>toEntityReference</tt></a>, <a href="QDomNode.html#toText()"><tt>toText</tt></a>, <a href="QDomNode.html#toEntity()"><tt>toEntity</tt></a>, <a href="QDomNode.html#toNotation()"><tt>toNotation</tt></a>, <a href="QDomNode.html#toProcessingInstruction()"><tt>toProcessingInstruction</tt></a>, <a href="QDomNode.html#toCharacterData()"><tt>toCharacterData</tt></a> or <a href="QDomNode.html#toComment()"><tt>toComment</tt></a>. You can convert a node to a null node with <a href="QDomNode.html#clear()"><tt>clear</tt></a>.</p> <p>Copies of the <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> class share their data using explicit sharing. This means that modifying one node will change all copies. This is especially useful in combination with functions which return a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a>, e.g&#x2e; <a href="QDomNode.html#firstChild()"><tt>firstChild</tt></a>. You can make an independent (deep) copy of the node with <a href="QDomNode.html#cloneNode(boolean)"><tt>cloneNode</tt></a>.</p> <p>A <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> can be null, much like a null pointer. Creating a copy of a null node results in another null node. It is not possible to modify a null node, but it is possible to assign another, possibly non-null node to it. In this case, the copy of the null node will remain null. You can check if a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> is null by calling <a href="QDomNode.html#isNull()"><tt>isNull</tt></a>. The empty constructor of a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> (or any of the derived classes) creates a null node.</p> <p>Nodes are inserted with <a href="QDomNode.html#insertBefore(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertBefore</tt></a>, <a href="QDomNode.html#insertAfter(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertAfter</tt></a> or <a href="QDomNode.html#appendChild(com.trolltech.qt.xml.QDomNode)"><tt>appendChild</tt></a>. You can replace one node with another using <a href="QDomNode.html#replaceChild(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>replaceChild</tt></a> and remove a node with <a href="QDomNode.html#removeChild(com.trolltech.qt.xml.QDomNode)"><tt>removeChild</tt></a>.</p> <p>To traverse nodes use <a href="QDomNode.html#firstChild()"><tt>firstChild</tt></a> to get a node's first child (if any), and <a href="QDomNode.html#nextSibling()"><tt>nextSibling</tt></a> to traverse. <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> also provides <a href="QDomNode.html#lastChild()"><tt>lastChild</tt></a>, <a href="QDomNode.html#previousSibling()"><tt>previousSibling</tt></a> and <a href="QDomNode.html#parentNode()"><tt>parentNode</tt></a>. To find the first child node with a particular node name use <a href="QDomNode.html#namedItem(java.lang.String)"><tt>namedItem</tt></a>.</p> <p>To find out if a node has children use <a href="QDomNode.html#hasChildNodes()"><tt>hasChildNodes</tt></a> and to get a list of all of a node's children use <a href="QDomNode.html#childNodes()"><tt>childNodes</tt></a>.</p> <p>The node's name and value (the meaning of which varies depending on its type) is returned by <a href="QDomNode.html#nodeName()"><tt>nodeName</tt></a> and <a href="QDomNode.html#nodeValue()"><tt>nodeValue</tt></a> respectively. The node's type is returned by <a href="QDomNode.html#nodeType()"><tt>nodeType</tt></a>. The node's value can be set with <a href="QDomNode.html#setNodeValue(java.lang.String)"><tt>setNodeValue</tt></a>.</p> <p>The document to which the node belongs is returned by <a href="QDomNode.html#ownerDocument()"><tt>ownerDocument</tt></a>.</p> <p>Adjacent <a href="QDomText.html"><tt>QDomText</tt></a> nodes can be merged into a single node with <a href="QDomNode.html#normalize()"><tt>normalize</tt></a>.</p> <p><a href="QDomElement.html"><tt>QDomElement</tt></a> nodes have attributes which can be retrieved with attributes().</p> <p><a href="QDomElement.html"><tt>QDomElement</tt></a> and <a href="QDomAttr.html"><tt>QDomAttr</tt></a> nodes can have namespaces which can be retrieved with <a href="QDomNode.html#namespaceURI()"><tt>namespaceURI</tt></a>. Their local name is retrieved with <a href="QDomNode.html#localName()"><tt>localName</tt></a>, and their prefix with <a href="QDomNode.html#prefix()"><tt>prefix</tt></a>. The prefix can be set with <a href="QDomNode.html#setPrefix(java.lang.String)"><tt>setPrefix</tt></a>.</p> <p>You can write the XML representation of the node to a text stream with <a href="QDomNode.html#save(com.trolltech.qt.core.QTextStream, int)"><tt>save</tt></a>.</p> <p>The following example looks for the first element in an XML document and prints the names of all the elements that are its direct children.</p> <pre> QDomDocument d; d.setContent(someXML); QDomNode n = d.firstChild(); while (!n.isNull()) { if (n.isElement()) { QDomElement e = n.toElement(); cout &lt;&lt; &quot;Element name: &quot; &lt;&lt; e.tagName() &lt;&lt; endl; break; } n = n.nextSibling(); }</pre> <p>For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">Level 1</tt></a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">Level 2 Core</tt></a>. For a more general introduction of the DOM implementation see the <a href="QDomDocument.html"><tt>QDomDocument</tt></a> documentation.</p> */"> <method name="public QDomNode()" doc="/** <p>Constructs a <a href="QDomNode.html#isNull()">null</tt></a> node.</p> */"/> <method name="public QDomNode(com.trolltech.qt.xml.QDomNode arg__1)" doc="/** <p>Constructs a copy of <tt>arg__1</tt>.</p> <p>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 <a href="QDomNode.html#cloneNode(boolean)"><tt>cloneNode</tt></a>.</p> */"/> <method name="public final com.trolltech.qt.xml.QDomNode appendChild(com.trolltech.qt.xml.QDomNode newChild)" doc="/** <p>Appends <tt>newChild</tt> as the node's last child.</p> <p>If <tt>newChild</tt> is the child of another node, it is reparented to this node. If <tt>newChild</tt> is a child of this node, then its position in the list of children is changed.</p> <p>If <tt>newChild</tt> is a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>, then the children of the fragment are removed from the fragment and appended.</p> <p>If <tt>newChild</tt> is a <a href="QDomElement.html"><tt>QDomElement</tt></a> and this node is a <a href="QDomDocument.html"><tt>QDomDocument</tt></a> that already has an element node as a child, <tt>newChild</tt> is not added as a child and a null node is returned.</p> <p>Calling this function on a null node(created, for example, with the default constructor) does nothing.</p> <p>The DOM specification disallow inserting attribute nodes, but due to historical reasons QDom accept them nevertheless.</p> @see <a href="QDomNode.html#insertBefore(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertBefore</tt></a> @see <a href="QDomNode.html#insertAfter(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertAfter</tt></a> @see <a href="QDomNode.html#replaceChild(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>replaceChild</tt></a> @see <a href="QDomNode.html#removeChild(com.trolltech.qt.xml.QDomNode)"><tt>removeChild</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNodeList childNodes()" doc="/** <p>Returns a list of all direct child nodes.</p> <p>Most often you will call this function on a <a href="QDomElement.html"><tt>QDomElement</tt></a> object.</p> <p>For example, if the XML document looks like this:</p> <pre> &lt;body&gt; &lt;h1&gt;Heading&lt;/h1&gt; &lt;p&gt;Hello &lt;b&gt;you&lt;/b&gt;&lt;/p&gt; &lt;/body&gt;</pre> <p>Then the list of child nodes for the &quot;body&quot;-element will contain the node created by the &amp;lt;h1&amp;gt; tag and the node created by the &amp;lt;p&amp;gt; tag.</p> <p>The nodes in the list are not copied; so changing the nodes in the list will also change the children of this node.</p> @see <a href="QDomNode.html#firstChild()"><tt>firstChild</tt></a> @see <a href="QDomNode.html#lastChild()"><tt>lastChild</tt></a> */"/> <method name="public final void clear()" doc="/** <p>Converts the node into a null node; if it was not a null node before, its type and contents are deleted.</p> @see <a href="QDomNode.html#isNull()"><tt>isNull</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode cloneNode(boolean deep)" doc="/** <p>Creates a deep (not shallow) copy of the <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a>.</p> <p>If <tt>deep</tt> is true, then the cloning is done recursively which means that all the node's children are deep copied too. If <tt>deep</tt> is false only the node itself is copied and the copy will have no child nodes.</p> */"/> <method name="public final com.trolltech.qt.xml.QDomNode cloneNode()" doc="/** <p>Equivalent to <a href="QDomNode.html#cloneNode(boolean)"><tt>cloneNode</tt></a>(true). */"/> <method name="public final int columnNumber()" doc="/** <p>For nodes created by QDomDocument::setContent(), this function returns the column number in the XML document where the node was parsed. Otherwise, -1 is returned.</p> @see <a href="QDomNode.html#lineNumber()"><tt>lineNumber</tt></a> @see <tt>QDomDocument::setContent</tt> */"/> <method name="public final com.trolltech.qt.xml.QDomNode firstChild()" doc="/** <p>Returns the first child of the node. If there is no child node, a <a href="QDomNode.html#isNull()">null node</tt></a> is returned. Changing the returned node will also change the node in the document tree.</p> @see <a href="QDomNode.html#lastChild()"><tt>lastChild</tt></a> @see <a href="QDomNode.html#childNodes()"><tt>childNodes</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement firstChildElement(java.lang.String tagName)" doc="/** <p>Returns the first child element with tag name <tt>tagName</tt> if tagName is non-empty; otherwise returns the first child element. Returns a null element if no such child exists.</p> @see <a href="QDomNode.html#lastChildElement(java.lang.String)"><tt>lastChildElement</tt></a> @see <a href="QDomNode.html#previousSiblingElement(java.lang.String)"><tt>previousSiblingElement</tt></a> @see <a href="QDomNode.html#nextSiblingElement(java.lang.String)"><tt>nextSiblingElement</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement firstChildElement()" doc="/** <p>Equivalent to <a href="QDomNode.html#firstChildElement(java.lang.String)"><tt>firstChildElement</tt></a>(QString()). */"/> <method name="public final boolean hasAttributes()" doc="/** <p>Returns true if the node has attributes; otherwise returns false.</p> @see <tt>attributes</tt> */"/> <method name="public final boolean hasChildNodes()" doc="/** <p>Returns true if the node has one or more children; otherwise returns false.</p> */"/> <method name="public final com.trolltech.qt.xml.QDomNode insertAfter(com.trolltech.qt.xml.QDomNode newChild, com.trolltech.qt.xml.QDomNode refChild)" doc="/** <p>Inserts the node <tt>newChild</tt> after the child node <tt>refChild</tt>. <tt>refChild</tt> must be a direct child of this node. If <tt>refChild</tt> is <a href="QDomNode.html#isNull()">null</tt></a> then <tt>newChild</tt> is appended as this node's last child.</p> <p>If <tt>newChild</tt> is the child of another node, it is reparented to this node. If <tt>newChild</tt> is a child of this node, then its position in the list of children is changed.</p> <p>If <tt>newChild</tt> is a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>, then the children of the fragment are removed from the fragment and inserted after <tt>refChild</tt>.</p> <p>Returns a new reference to <tt>newChild</tt> on success or a <a href="QDomNode.html#isNull()">null node</tt></a> on failure.</p> <p>The DOM specification disallow inserting attribute nodes, but due to historical reasons QDom accept them nevertheless.</p> @see <a href="QDomNode.html#insertBefore(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertBefore</tt></a> @see <a href="QDomNode.html#replaceChild(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>replaceChild</tt></a> @see <a href="QDomNode.html#removeChild(com.trolltech.qt.xml.QDomNode)"><tt>removeChild</tt></a> @see <a href="QDomNode.html#appendChild(com.trolltech.qt.xml.QDomNode)"><tt>appendChild</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode insertBefore(com.trolltech.qt.xml.QDomNode newChild, com.trolltech.qt.xml.QDomNode refChild)" doc="/** <p>Inserts the node <tt>newChild</tt> before the child node <tt>refChild</tt>. <tt>refChild</tt> must be a direct child of this node. If <tt>refChild</tt> is <a href="QDomNode.html#isNull()">null</tt></a> then <tt>newChild</tt> is inserted as the node's first child.</p> <p>If <tt>newChild</tt> is the child of another node, it is reparented to this node. If <tt>newChild</tt> is a child of this node, then its position in the list of children is changed.</p> <p>If <tt>newChild</tt> is a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>, then the children of the fragment are removed from the fragment and inserted before <tt>refChild</tt>.</p> <p>Returns a new reference to <tt>newChild</tt> on success or a <a href="QDomNode.html#isNull()">null node</tt></a> on failure.</p> <p>The DOM specification disallow inserting attribute nodes, but due to historical reasons QDom accept them nevertheless.</p> @see <a href="QDomNode.html#insertAfter(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertAfter</tt></a> @see <a href="QDomNode.html#replaceChild(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>replaceChild</tt></a> @see <a href="QDomNode.html#removeChild(com.trolltech.qt.xml.QDomNode)"><tt>removeChild</tt></a> @see <a href="QDomNode.html#appendChild(com.trolltech.qt.xml.QDomNode)"><tt>appendChild</tt></a> */"/> <method name="public final boolean isAttr()" doc="/** <p>Returns true if the node is an attribute; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a QDomAttribute; you can get the QDomAttribute with toAttribute().</p> @see <a href="QDomNode.html#toAttr()"><tt>toAttr</tt></a> */"/> <method name="public final boolean isCDATASection()" doc="/** <p>Returns true if the node is a CDATA section; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a>; you can get the <a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a> with <a href="QDomNode.html#toCDATASection()"><tt>toCDATASection</tt></a>.</p> @see <a href="QDomNode.html#toCDATASection()"><tt>toCDATASection</tt></a> */"/> <method name="public final boolean isCharacterData()" doc="/** <p>Returns true if the node is a character data node; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomCharacterData.html"><tt>QDomCharacterData</tt></a>; you can get the <a href="QDomCharacterData.html"><tt>QDomCharacterData</tt></a> with <a href="QDomNode.html#toCharacterData()"><tt>toCharacterData</tt></a>.</p> @see <a href="QDomNode.html#toCharacterData()"><tt>toCharacterData</tt></a> */"/> <method name="public final boolean isComment()" doc="/** <p>Returns true if the node is a comment; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomComment.html"><tt>QDomComment</tt></a>; you can get the <a href="QDomComment.html"><tt>QDomComment</tt></a> with <a href="QDomNode.html#toComment()"><tt>toComment</tt></a>.</p> @see <a href="QDomNode.html#toComment()"><tt>toComment</tt></a> */"/> <method name="public final boolean isDocument()" doc="/** <p>Returns true if the node is a document; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomDocument.html"><tt>QDomDocument</tt></a>; you can get the <a href="QDomDocument.html"><tt>QDomDocument</tt></a> with <a href="QDomNode.html#toDocument()"><tt>toDocument</tt></a>.</p> @see <a href="QDomNode.html#toDocument()"><tt>toDocument</tt></a> */"/> <method name="public final boolean isDocumentFragment()" doc="/** <p>Returns true if the node is a document fragment; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>; you can get the <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a> with <a href="QDomNode.html#toDocumentFragment()"><tt>toDocumentFragment</tt></a>.</p> @see <a href="QDomNode.html#toDocumentFragment()"><tt>toDocumentFragment</tt></a> */"/> <method name="public final boolean isDocumentType()" doc="/** <p>Returns true if the node is a document type; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomDocumentType.html"><tt>QDomDocumentType</tt></a>; you can get the <a href="QDomDocumentType.html"><tt>QDomDocumentType</tt></a> with <a href="QDomNode.html#toDocumentType()"><tt>toDocumentType</tt></a>.</p> @see <a href="QDomNode.html#toDocumentType()"><tt>toDocumentType</tt></a> */"/> <method name="public final boolean isElement()" doc="/** <p>Returns true if the node is an element; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomElement.html"><tt>QDomElement</tt></a>; you can get the <a href="QDomElement.html"><tt>QDomElement</tt></a> with <a href="QDomNode.html#toElement()"><tt>toElement</tt></a>.</p> @see <a href="QDomNode.html#toElement()"><tt>toElement</tt></a> */"/> <method name="public final boolean isEntity()" doc="/** <p>Returns true if the node is an entity; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomEntity.html"><tt>QDomEntity</tt></a>; you can get the <a href="QDomEntity.html"><tt>QDomEntity</tt></a> with <a href="QDomNode.html#toEntity()"><tt>toEntity</tt></a>.</p> @see <a href="QDomNode.html#toEntity()"><tt>toEntity</tt></a> */"/> <method name="public final boolean isEntityReference()" doc="/** <p>Returns true if the node is an entity reference; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomEntityReference.html"><tt>QDomEntityReference</tt></a>; you can get the <a href="QDomEntityReference.html"><tt>QDomEntityReference</tt></a> with <a href="QDomNode.html#toEntityReference()"><tt>toEntityReference</tt></a>.</p> @see <a href="QDomNode.html#toEntityReference()"><tt>toEntityReference</tt></a> */"/> <method name="public final boolean isNotation()" doc="/** <p>Returns true if the node is a notation; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomNotation.html"><tt>QDomNotation</tt></a>; you can get the <a href="QDomNotation.html"><tt>QDomNotation</tt></a> with <a href="QDomNode.html#toNotation()"><tt>toNotation</tt></a>.</p> @see <a href="QDomNode.html#toNotation()"><tt>toNotation</tt></a> */"/> <method name="public final boolean isNull()" doc="/** <p>Returns true if this node is null (i.e&#x2e; if it has no type or contents); otherwise returns false.</p> */"/> <method name="public final boolean isProcessingInstruction()" doc="/** <p>Returns true if the node is a processing instruction; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomProcessingInstruction.html"><tt>QDomProcessingInstruction</tt></a>; you can get the QProcessingInstruction with <a href="QDomNode.html#toProcessingInstruction()"><tt>toProcessingInstruction</tt></a>.</p> @see <a href="QDomNode.html#toProcessingInstruction()"><tt>toProcessingInstruction</tt></a> */"/> <method name="public final boolean isSupported(java.lang.String feature, java.lang.String version)" doc="/** <p>Returns true if the DOM implementation implements the feature <tt>feature</tt> and this feature is supported by this node in the version <tt>version</tt>; otherwise returns false.</p> @see <tt>QDomImplementation::hasFeature</tt> */"/> <method name="public final boolean isText()" doc="/** <p>Returns true if the node is a text node; otherwise returns false.</p> <p>If this function returns true, it does not imply that this object is a <a href="QDomText.html"><tt>QDomText</tt></a>; you can get the <a href="QDomText.html"><tt>QDomText</tt></a> with <a href="QDomNode.html#toText()"><tt>toText</tt></a>.</p> @see <a href="QDomNode.html#toText()"><tt>toText</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode lastChild()" doc="/** <p>Returns the last child of the node. If there is no child node, a <a href="QDomNode.html#isNull()">null node</tt></a> is returned. Changing the returned node will also change the node in the document tree.</p> @see <a href="QDomNode.html#firstChild()"><tt>firstChild</tt></a> @see <a href="QDomNode.html#childNodes()"><tt>childNodes</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement lastChildElement(java.lang.String tagName)" doc="/** <p>Returns the last child element with tag name <tt>tagName</tt> if tagName is non-empty; otherwise returns the first child element. Returns a null element if no such child exists.</p> @see <a href="QDomNode.html#firstChildElement(java.lang.String)"><tt>firstChildElement</tt></a> @see <a href="QDomNode.html#previousSiblingElement(java.lang.String)"><tt>previousSiblingElement</tt></a> @see <a href="QDomNode.html#nextSiblingElement(java.lang.String)"><tt>nextSiblingElement</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement lastChildElement()" doc="/** <p>Equivalent to <a href="QDomNode.html#lastChildElement(java.lang.String)"><tt>lastChildElement</tt></a>(QString()). */"/> <method name="public final int lineNumber()" doc="/** <p>For nodes created by QDomDocument::setContent(), this function returns the line number in the XML document where the node was parsed. Otherwise, -1 is returned.</p> @see <a href="QDomNode.html#columnNumber()"><tt>columnNumber</tt></a> @see <tt>QDomDocument::setContent</tt> */"/> <method name="public final java.lang.String localName()" doc="/** <p>If the node uses namespaces, this function returns the local name of the node; otherwise it returns an empty string.</p> <p>Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace must have been specified at creation time; it is not possible to add a namespace afterwards.</p> <p>QDomDocument::createAttributeNS()</p> @see <a href="QDomNode.html#prefix()"><tt>prefix</tt></a> @see <a href="QDomNode.html#namespaceURI()"><tt>namespaceURI</tt></a> @see <tt>QDomDocument::createElementNS</tt> */"/> <method name="public final com.trolltech.qt.xml.QDomNode namedItem(java.lang.String name)" doc="/** <p>Returns the first direct child node for which <a href="QDomNode.html#nodeName()"><tt>nodeName</tt></a> equals <tt>name</tt>.</p> <p>If no such direct child exists, a <a href="QDomNode.html#isNull()">null node</tt></a> is returned.</p> @see <a href="QDomNode.html#nodeName()"><tt>nodeName</tt></a> */"/> <method name="public final java.lang.String namespaceURI()" doc="/** <p>Returns the namespace URI of this node or an empty string if the node has no namespace URI.</p> <p>Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace URI must be specified at creation time and cannot be changed later.</p> <p>QDomDocument::createAttributeNS()</p> @see <a href="QDomNode.html#prefix()"><tt>prefix</tt></a> @see <a href="QDomNode.html#localName()"><tt>localName</tt></a> @see <tt>QDomDocument::createElementNS</tt> */"/> <method name="public final com.trolltech.qt.xml.QDomNode nextSibling()" doc="/** <p>Returns the next sibling in the document tree. Changing the returned node will also change the node in the document tree.</p> <p>If you have XML like this:</p> <pre> &lt;h1&gt;Heading&lt;/h1&gt; &lt;p&gt;The text...&lt;/p&gt; &lt;h2&gt;Next heading&lt;/h2&gt;</pre> <p>and this <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> represents the &lt;p&gt; tag, <a href="QDomNode.html#nextSibling()"><tt>nextSibling</tt></a> will return the node representing the &lt;h2&gt; tag.</p> @see <a href="QDomNode.html#previousSibling()"><tt>previousSibling</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement nextSiblingElement(java.lang.String taName)" doc="/** <p>Returns the next sibilng element with tag name <tt>taName</tt> if <tt>taName</tt> is non-empty; otherwise returns any next sibling element. Returns a null element if no such sibling exists.</p> @see <a href="QDomNode.html#firstChildElement(java.lang.String)"><tt>firstChildElement</tt></a> @see <a href="QDomNode.html#previousSiblingElement(java.lang.String)"><tt>previousSiblingElement</tt></a> @see <a href="QDomNode.html#lastChildElement(java.lang.String)"><tt>lastChildElement</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement nextSiblingElement()" doc="/** <p>Equivalent to <a href="QDomNode.html#nextSiblingElement(java.lang.String)"><tt>nextSiblingElement</tt></a>(QString()). */"/> <method name="public final java.lang.String nodeName()" doc="/** <p>Returns the name of the node.</p> <p>The meaning of the name depends on the subclass:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <thead><tr valign="top" class="qt-style"><th>Name</th><th>Meaning</th></tr></thead> <tr valign="top" class="odd"><td><a href="QDomAttr.html"><tt>QDomAttr</tt></a></td><td>The name of the attribute</td></tr> <tr valign="top" class="even"><td><a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a></td><td>The string &quot;#cdata-section&quot;</td></tr> <tr valign="top" class="odd"><td><a href="QDomComment.html"><tt>QDomComment</tt></a></td><td>The string &quot;#comment&quot;</td></tr> <tr valign="top" class="even"><td><a href="QDomDocument.html"><tt>QDomDocument</tt></a></td><td>The string &quot;#document&quot;</td></tr> <tr valign="top" class="odd"><td><a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a></td><td>The string &quot;#document-fragment&quot;</td></tr> <tr valign="top" class="even"><td><a href="QDomDocumentType.html"><tt>QDomDocumentType</tt></a></td><td>The name of the document type</td></tr> <tr valign="top" class="odd"><td><a href="QDomElement.html"><tt>QDomElement</tt></a></td><td>The tag name</td></tr> <tr valign="top" class="even"><td><a href="QDomEntity.html"><tt>QDomEntity</tt></a></td><td>The name of the entity</td></tr> <tr valign="top" class="odd"><td><a href="QDomEntityReference.html"><tt>QDomEntityReference</tt></a></td><td>The name of the referenced entity</td></tr> <tr valign="top" class="even"><td><a href="QDomNotation.html"><tt>QDomNotation</tt></a></td><td>The name of the notation</td></tr> <tr valign="top" class="odd"><td><a href="QDomProcessingInstruction.html"><tt>QDomProcessingInstruction</tt></a></td><td>The target of the processing instruction</td></tr> <tr valign="top" class="even"><td><a href="QDomText.html"><tt>QDomText</tt></a></td><td>The string &quot;#text&quot;</td></tr> </table></p> <p><b>Note:</b> This function does not take the presence of namespaces into account when processing the names of element and attribute nodes. As a result, the returned name can contain any namespace prefix that may be present. To obtain the node name of an element or attribute, use <a href="QDomNode.html#localName()"><tt>localName</tt></a>; to obtain the namespace prefix, use <a href="QDomNode.html#namespaceURI()"><tt>namespaceURI</tt></a>.</p> @see <a href="QDomNode.html#nodeValue()"><tt>nodeValue</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode.NodeType nodeType()" doc="/** <p>Returns the type of the node.</p> @see <a href="QDomNode.html#toAttr()"><tt>toAttr</tt></a> @see <a href="QDomNode.html#toCDATASection()"><tt>toCDATASection</tt></a> @see <a href="QDomNode.html#toDocumentFragment()"><tt>toDocumentFragment</tt></a> @see <a href="QDomNode.html#toDocument()"><tt>toDocument</tt></a> @see <a href="QDomNode.html#toDocumentType()"><tt>toDocumentType</tt></a> @see <a href="QDomNode.html#toElement()"><tt>toElement</tt></a> @see <a href="QDomNode.html#toEntityReference()"><tt>toEntityReference</tt></a> @see <a href="QDomNode.html#toText()"><tt>toText</tt></a> @see <a href="QDomNode.html#toEntity()"><tt>toEntity</tt></a> @see <a href="QDomNode.html#toNotation()"><tt>toNotation</tt></a> @see <a href="QDomNode.html#toProcessingInstruction()"><tt>toProcessingInstruction</tt></a> @see <a href="QDomNode.html#toCharacterData()"><tt>toCharacterData</tt></a> @see <a href="QDomNode.html#toComment()"><tt>toComment</tt></a> */"/> <method name="public final java.lang.String nodeValue()" doc="/** <p>Returns the value of the node.</p> <p>The meaning of the value depends on the subclass:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <thead><tr valign="top" class="qt-style"><th>Name</th><th>Meaning</th></tr></thead> <tr valign="top" class="odd"><td><a href="QDomAttr.html"><tt>QDomAttr</tt></a></td><td>The attribute value</td></tr> <tr valign="top" class="even"><td><a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a></td><td>The content of the CDATA section</td></tr> <tr valign="top" class="odd"><td><a href="QDomComment.html"><tt>QDomComment</tt></a></td><td>The comment</td></tr> <tr valign="top" class="even"><td><a href="QDomProcessingInstruction.html"><tt>QDomProcessingInstruction</tt></a></td><td>The data of the processing instruction</td></tr> <tr valign="top" class="odd"><td><a href="QDomText.html"><tt>QDomText</tt></a></td><td>The text</td></tr> </table></p> <p>All the other subclasses do not have a node value and will return an empty string.</p> @see <a href="QDomNode.html#setNodeValue(java.lang.String)"><tt>setNodeValue</tt></a> @see <a href="QDomNode.html#nodeName()"><tt>nodeName</tt></a> */"/> <method name="public final void normalize()" doc="/** <p>Calling <a href="QDomNode.html#normalize()"><tt>normalize</tt></a> on an element converts all its children into a standard form. This means that adjacent <a href="QDomText.html"><tt>QDomText</tt></a> objects will be merged into a single text object (<a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a> nodes are not merged).</p> */"/> <method name="public final void writeTo(com.trolltech.qt.core.QTextStream arg__1)"/> <method name="public final com.trolltech.qt.xml.QDomDocument ownerDocument()" doc="/** <p>Returns the document to which this node belongs.</p> */"/> <method name="public final com.trolltech.qt.xml.QDomNode parentNode()" doc="/** <p>Returns the parent node. If this node has no parent, a null node is returned (i.e&#x2e; a node for which <a href="QDomNode.html#isNull()"><tt>isNull</tt></a> returns true).</p> */"/> <method name="public final java.lang.String prefix()" doc="/** <p>Returns the namespace prefix of the node or an empty string if the node has no namespace prefix.</p> <p>Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace prefix must be specified at creation time. If a node was created with a namespace prefix, you can change it later with <a href="QDomNode.html#setPrefix(java.lang.String)"><tt>setPrefix</tt></a>.</p> <p>If you create an element or attribute with QDomDocument::createElement() or QDomDocument::createAttribute(), the prefix will be an empty string. If you use QDomDocument::createElementNS() or QDomDocument::createAttributeNS() instead, the prefix will not be an empty string; but it might be an empty string if the name does not have a prefix.</p> <p>QDomDocument::createElementNS() QDomDocument::createAttributeNS()</p> @see <a href="QDomNode.html#setPrefix(java.lang.String)"><tt>setPrefix</tt></a> @see <a href="QDomNode.html#localName()"><tt>localName</tt></a> @see <a href="QDomNode.html#namespaceURI()"><tt>namespaceURI</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode previousSibling()" doc="/** <p>Returns the previous sibling in the document tree. Changing the returned node will also change the node in the document tree.</p> <p>For example, if you have XML like this:</p> <pre> &lt;h1&gt;Heading&lt;/h1&gt; &lt;p&gt;The text...&lt;/p&gt; &lt;h2&gt;Next heading&lt;/h2&gt;</pre> <p>and this <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> represents the &amp;lt;p&amp;gt; tag, <a href="QDomNode.html#previousSibling()"><tt>previousSibling</tt></a> will return the node representing the &amp;lt;h1&amp;gt; tag.</p> @see <a href="QDomNode.html#nextSibling()"><tt>nextSibling</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement previousSiblingElement(java.lang.String tagName)" doc="/** <p>Returns the previous sibilng element with tag name <tt>tagName</tt> if <tt>tagName</tt> is non-empty; otherwise returns any previous sibling element. Returns a null element if no such sibling exists.</p> @see <a href="QDomNode.html#firstChildElement(java.lang.String)"><tt>firstChildElement</tt></a> @see <a href="QDomNode.html#nextSiblingElement(java.lang.String)"><tt>nextSiblingElement</tt></a> @see <a href="QDomNode.html#lastChildElement(java.lang.String)"><tt>lastChildElement</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement previousSiblingElement()" doc="/** <p>Equivalent to <a href="QDomNode.html#previousSiblingElement(java.lang.String)"><tt>previousSiblingElement</tt></a>(QString()). */"/> <method name="public final com.trolltech.qt.xml.QDomNode removeChild(com.trolltech.qt.xml.QDomNode oldChild)" doc="/** <p>Removes <tt>oldChild</tt> from the list of children. <tt>oldChild</tt> must be a direct child of this node.</p> <p>Returns a new reference to <tt>oldChild</tt> on success or a <a href="QDomNode.html#isNull()">null node</tt></a> on failure.</p> @see <a href="QDomNode.html#insertBefore(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertBefore</tt></a> @see <a href="QDomNode.html#insertAfter(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertAfter</tt></a> @see <a href="QDomNode.html#replaceChild(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>replaceChild</tt></a> @see <a href="QDomNode.html#appendChild(com.trolltech.qt.xml.QDomNode)"><tt>appendChild</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNode replaceChild(com.trolltech.qt.xml.QDomNode newChild, com.trolltech.qt.xml.QDomNode oldChild)" doc="/** <p>Replaces <tt>oldChild</tt> with <tt>newChild</tt>. <tt>oldChild</tt> must be a direct child of this node.</p> <p>If <tt>newChild</tt> is the child of another node, it is reparented to this node. If <tt>newChild</tt> is a child of this node, then its position in the list of children is changed.</p> <p>If <tt>newChild</tt> is a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>, then <tt>oldChild</tt> is replaced by all of the children of the fragment.</p> <p>Returns a new reference to <tt>oldChild</tt> on success or a <a href="QDomNode.html#isNull()">null node</tt></a> an failure.</p> @see <a href="QDomNode.html#insertBefore(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertBefore</tt></a> @see <a href="QDomNode.html#insertAfter(com.trolltech.qt.xml.QDomNode, com.trolltech.qt.xml.QDomNode)"><tt>insertAfter</tt></a> @see <a href="QDomNode.html#removeChild(com.trolltech.qt.xml.QDomNode)"><tt>removeChild</tt></a> @see <a href="QDomNode.html#appendChild(com.trolltech.qt.xml.QDomNode)"><tt>appendChild</tt></a> */"/> <method name="public final void save(com.trolltech.qt.core.QTextStream arg__1, int arg__2, com.trolltech.qt.xml.QDomNode.EncodingPolicy arg__3)" doc="/** <p>If <tt>arg__3</tt> is QDomNode::EncodingFromDocument, this function behaves as save(<a href="%2E%2E/core/QTextStream.html"><tt>QTextStream</tt></a> &amp;str, int indent).</p> <p>If <tt>arg__3</tt> is <a href="QDomNode.html#EncodingPolicy-enum"><tt>EncodingFromTextStream</tt></a> and this node is a document node, this function behaves as save(<a href="%2E%2E/core/QTextStream.html"><tt>QTextStream</tt></a> &amp;str, int indent) with the exception that the encoding specified in the text stream <tt>arg__1</tt> is used.</p> <p>If the document contains invalid XML characters or characters that cannot be encoded in the given encoding, the result and behavior is undefined.</p> */"/> <method name="public final void save(com.trolltech.qt.core.QTextStream arg__1, int arg__2)" doc="/** <p>Writes the XML representation of the node and all its children to the stream <tt>arg__1</tt>. This function uses <tt>arg__2</tt> as the amount of space to indent the node.</p> <p>If this node is a document node, the encoding of text stream <tt>arg__1</tt>'s encoding is set by treating a processing instruction by name &quot;xml&quot; as an XML declaration, if such a one exists, and otherwise defaults to UTF-8. XML declarations are not processing instructions, but this behavior exists for historical reasons. If this node is not a document node, the text stream's encoding is used.</p> <p>If the document contains invalid XML characters or characters that cannot be encoded in the given encoding, the result and behavior is undefined.</p> */"/> <method name="public final void setNodeValue(java.lang.String arg__1)" doc="/** <p>Sets the node's value to <tt>arg__1</tt>.</p> @see <a href="QDomNode.html#nodeValue()"><tt>nodeValue</tt></a> */"/> <method name="public final void setPrefix(java.lang.String pre)" doc="/** <p>If the node has a namespace prefix, this function changes the namespace prefix of the node to <tt>pre</tt>. Otherwise this function does nothing.</p> <p>Only nodes of type ElementNode or AttributeNode can have namespaces. A namespace prefix must have be specified at creation time; it is not possible to add a namespace prefix afterwards.</p> <p>QDomDocument::createElementNS() QDomDocument::createAttributeNS()</p> @see <a href="QDomNode.html#prefix()"><tt>prefix</tt></a> @see <a href="QDomNode.html#localName()"><tt>localName</tt></a> @see <a href="QDomNode.html#namespaceURI()"><tt>namespaceURI</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomAttr toAttr()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomAttr.html"><tt>QDomAttr</tt></a>. If the node is not an attribute, the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isAttr()"><tt>isAttr</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomCDATASection toCDATASection()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomCDATASection.html"><tt>QDomCDATASection</tt></a>. If the node is not a CDATA section, the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isCDATASection()"><tt>isCDATASection</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomCharacterData toCharacterData()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomCharacterData.html"><tt>QDomCharacterData</tt></a>. If the node is not a character data node the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isCharacterData()"><tt>isCharacterData</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomComment toComment()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomComment.html"><tt>QDomComment</tt></a>. If the node is not a comment the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isComment()"><tt>isComment</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomDocument toDocument()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomDocument.html"><tt>QDomDocument</tt></a>. If the node is not a document the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isDocument()"><tt>isDocument</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomDocumentFragment toDocumentFragment()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomDocumentFragment.html"><tt>QDomDocumentFragment</tt></a>. If the node is not a document fragment the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isDocumentFragment()"><tt>isDocumentFragment</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomDocumentType toDocumentType()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomDocumentType.html"><tt>QDomDocumentType</tt></a>. If the node is not a document type the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isDocumentType()"><tt>isDocumentType</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomElement toElement()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomElement.html"><tt>QDomElement</tt></a>. If the node is not an element the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isElement()"><tt>isElement</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomEntity toEntity()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomEntity.html"><tt>QDomEntity</tt></a>. If the node is not an entity the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isEntity()"><tt>isEntity</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomEntityReference toEntityReference()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomEntityReference.html"><tt>QDomEntityReference</tt></a>. If the node is not an entity reference, the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isEntityReference()"><tt>isEntityReference</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomNotation toNotation()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomNotation.html"><tt>QDomNotation</tt></a>. If the node is not a notation the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isNotation()"><tt>isNotation</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomProcessingInstruction toProcessingInstruction()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomProcessingInstruction.html"><tt>QDomProcessingInstruction</tt></a>. If the node is not a processing instruction the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isProcessingInstruction()"><tt>isProcessingInstruction</tt></a> */"/> <method name="public final com.trolltech.qt.xml.QDomText toText()" doc="/** <p>Converts a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> into a <a href="QDomText.html"><tt>QDomText</tt></a>. If the node is not a text, the returned object will be null</tt>.</p> @see <a href="QDomNode.html#isText()"><tt>isText</tt></a> */"/> <enum name="NodeType" doc="/** <p>This enum defines the type of the node:</p> <p><table border="1" cellpadding="2" cellspacing="1" width="100%"> <tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr> <tr><td valign="top"><tt>ElementNode</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>AttributeNode</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>TextNode</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>CDATASectionNode</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>EntityReferenceNode</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>EntityNode</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>ProcessingInstructionNode</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>CommentNode</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>DocumentNode</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>DocumentTypeNode</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>DocumentFragmentNode</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>NotationNode</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">&nbsp;</td></tr> <tr><td valign="top"><tt>BaseNode</tt></td><td align="center" valign="top"><tt>21</tt></td><td valign="top">A <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> object, i.e&#x2e; not a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> subclass.</td></tr> <tr><td valign="top"><tt>CharacterDataNode</tt></td><td align="center" valign="top"><tt>22</tt></td><td valign="top">&nbsp;</td></tr> </table></p> */"> <enum-value name="ElementNode" doc="/** Internal. */"/> <enum-value name="AttributeNode" doc="/** Internal. */"/> <enum-value name="TextNode" doc="/** Internal. */"/> <enum-value name="CDATASectionNode" doc="/** Internal. */"/> <enum-value name="EntityReferenceNode" doc="/** Internal. */"/> <enum-value name="EntityNode" doc="/** Internal. */"/> <enum-value name="ProcessingInstructionNode" doc="/** Internal. */"/> <enum-value name="CommentNode" doc="/** Internal. */"/> <enum-value name="DocumentNode" doc="/** Internal. */"/> <enum-value name="DocumentTypeNode" doc="/** Internal. */"/> <enum-value name="DocumentFragmentNode" doc="/** Internal. */"/> <enum-value name="NotationNode" doc="/** Internal. */"/> <enum-value name="BaseNode" doc="/** <p>A <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> object, i.e&#x2e; not a <a href="QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)"><tt>QDomNode</tt></a> subclass.</p> */"/> <enum-value name="CharacterDataNode" doc="/** Internal. */"/> </enum> <enum name="EncodingPolicy" doc="/** <p>This enum specifies how QDomNode::save() determines what encoding to use when serializing.</p> <p>See also the overload of the <a href="QDomNode.html#save(com.trolltech.qt.core.QTextStream, int)"><tt>save</tt></a> function that takes an <a href="QDomNode.html#EncodingPolicy-enum"><tt>EncodingPolicy</tt></a>.</p> */"> <enum-value name="EncodingFromDocument" doc="/** <p>The encoding is fetched from the document.</p> */"/> <enum-value name="EncodingFromTextStream" doc="/** <p>The encoding is fetched from the <a href="%2E%2E/core/QTextStream.html"><tt>QTextStream</tt></a>.</p> */"/> </enum> </class>