<class name="QDomDocument" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; class represents an XML document.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; class represents the entire XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.&lt;/p&gt;
&lt;p&gt;Since elements, text nodes, comments, processing instructions, etc., cannot exist outside the context of a document, the document class also contains the factory functions needed to create these objects. The node objects created have an &lt;a href=&quot;QDomNode.html#ownerDocument()&quot;&gt;&lt;tt&gt;ownerDocument&lt;/tt&gt;&lt;/a&gt; function which associates them with the document within whose context they were created. The DOM classes that will be used most often are &lt;a href=&quot;QDomNode.html#QDomNode(com.trolltech.qt.xml.QDomNode)&quot;&gt;&lt;tt&gt;QDomNode&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomElement.html&quot;&gt;&lt;tt&gt;QDomElement&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomText.html&quot;&gt;&lt;tt&gt;QDomText&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The parsed XML is represented internally by a tree of objects that can be accessed using the various QDom classes. All QDom classes only &lt;i&gt;reference&lt;/i&gt; objects in the internal tree. The internal objects in the DOM tree will get deleted once the last QDom object referencing them and the &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; itself are deleted.&lt;/p&gt;
&lt;p&gt;Creation of elements, text nodes, etc. is done using the various factory functions provided in this class. Using the default constructors of the QDom classes will only result in empty objects that cannot be manipulated or inserted into the Document.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; class has several functions for creating document data, for example, &lt;a href=&quot;QDomDocument.html#createElement(java.lang.String)&quot;&gt;&lt;tt&gt;createElement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#createTextNode(java.lang.String)&quot;&gt;&lt;tt&gt;createTextNode&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#createComment(java.lang.String)&quot;&gt;&lt;tt&gt;createComment&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#createCDATASection(java.lang.String)&quot;&gt;&lt;tt&gt;createCDATASection&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#createProcessingInstruction(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;createProcessingInstruction&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDomDocument.html#createAttribute(java.lang.String)&quot;&gt;&lt;tt&gt;createAttribute&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomDocument.html#createEntityReference(java.lang.String)&quot;&gt;&lt;tt&gt;createEntityReference&lt;/tt&gt;&lt;/a&gt;. Some of these functions have versions that support namespaces, i.e&amp;#x2e; &lt;a href=&quot;QDomDocument.html#createElementNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;createElementNS&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomDocument.html#createAttributeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;createAttributeNS&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QDomDocument.html#createDocumentFragment()&quot;&gt;&lt;tt&gt;createDocumentFragment&lt;/tt&gt;&lt;/a&gt; function is used to hold parts of the document; this is useful for manipulating for complex documents.&lt;/p&gt;
&lt;p&gt;The entire content of the document is set with setContent(). This function parses the string it is passed as an XML document and creates the DOM tree that represents the document. The root element is available using &lt;a href=&quot;QDomDocument.html#documentElement()&quot;&gt;&lt;tt&gt;documentElement&lt;/tt&gt;&lt;/a&gt;. The textual representation of the document can be obtained using &lt;a href=&quot;QDomDocument.html#toString(int)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It is possible to insert a node from another document into the document using &lt;a href=&quot;QDomDocument.html#importNode(com.trolltech.qt.xml.QDomNode, boolean)&quot;&gt;&lt;tt&gt;importNode&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can obtain a list of all the elements that have a particular tag with &lt;a href=&quot;QDomDocument.html#elementsByTagName(java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagName&lt;/tt&gt;&lt;/a&gt; or with &lt;a href=&quot;QDomDocument.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;The QDom classes are typically used as follows:&lt;/p&gt;
&lt;pre&gt;    QDomDocument doc(&amp;quot;mydocument&amp;quot;);
    QFile file(&amp;quot;mydocument.xml&amp;quot;);
    if (!file.open(QIODevice::ReadOnly))
        return;
    if (!doc.setContent(&amp;amp;file)) {
        file.close();
        return;
    }
    file.close();

&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; print out the element names of all elements that are direct children
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; of the outermost element.
    QDomElement docElem = doc.documentElement();

    QDomNode n = docElem.firstChild();
    while(!n.isNull()) {
        QDomElement e = n.toElement(); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; try to convert the node to an element.
        if(!e.isNull()) {
            cout &amp;lt;&amp;lt; e.tagName() &amp;lt;&amp;lt; endl; &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; the node really is an element.
        }
        n = n.nextSibling();
    }

&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; Here we append a new element to the end of the document
    QDomElement elem = doc.createElement(&amp;quot;img&amp;quot;);
    elem.setAttribute(&amp;quot;src&amp;quot;, &amp;quot;myimage.png&amp;quot;);
    docElem.appendChild(elem);&lt;/pre&gt;
&lt;p&gt;Once &lt;tt&gt;doc&lt;/tt&gt; and &lt;tt&gt;elem&lt;/tt&gt; go out of scope, the whole internal tree representing the XML document is deleted.&lt;/p&gt;
&lt;p&gt;To create a document using DOM use code like this:&lt;/p&gt;
&lt;pre&gt;    QDomDocument doc(&amp;quot;MyML&amp;quot;);
    QDomElement root = doc.createElement(&amp;quot;MyML&amp;quot;);
    doc.appendChild(root);

    QDomElement tag = doc.createElement(&amp;quot;Greeting&amp;quot;);
    root.appendChild(tag);

    QDomText t = doc.createTextNode(&amp;quot;Hello World&amp;quot;);
    tag.appendChild(t);

    QString xml = doc.toString();&lt;/pre&gt;
&lt;p&gt;For further information about the Document Object Model see the Document Object Model (DOM) &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; Specifications.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/qtjambi-dombookmarks.html&quot;&gt;DOM Bookmarks Example&lt;/tt&gt;&lt;/a&gt;
@see Simple DOM Model Example&lt;/tt&gt; */">
    <method name="public QDomDocument(java.lang.String name)" doc="/**
&lt;p&gt;Creates a document and sets the name of the document type to &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QDomDocument(com.trolltech.qt.xml.QDomDocument 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 QDomDocument()" doc="/**
&lt;p&gt;Constructs an empty document.&lt;/p&gt;
 */"/>
    <method name="public QDomDocument(com.trolltech.qt.xml.QDomDocumentType doctype)" doc="/**
&lt;p&gt;Creates a document with the document type &lt;tt&gt;doctype&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QDomImplementation::createDocumentType&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr createAttribute(java.lang.String name)" doc="/**
&lt;p&gt;Creates a new attribute called &lt;tt&gt;name&lt;/tt&gt; that can be inserted into an element, e.g&amp;#x2e; using QDomElement::setAttributeNode().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;name&lt;/tt&gt; is not a valid XML name, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;a href=&quot;QDomDocument.html#createAttributeNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;createAttributeNS&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomAttr createAttributeNS(java.lang.String nsURI, java.lang.String qName)" doc="/**
&lt;p&gt;Creates a new attribute with namespace support that can be inserted into an element. The name of the attribute is &lt;tt&gt;qName&lt;/tt&gt; and the namespace URI is &lt;tt&gt;nsURI&lt;/tt&gt;. This function also sets QDomNode::prefix() and QDomNode::localName() to appropriate values (depending on &lt;tt&gt;qName&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;qName&lt;/tt&gt; is not a valid XML name, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;a href=&quot;QDomDocument.html#createAttribute(java.lang.String)&quot;&gt;&lt;tt&gt;createAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomCDATASection createCDATASection(java.lang.String data)" doc="/**
&lt;p&gt;Creates a new CDATA section for the string &lt;tt&gt;data&lt;/tt&gt; that can be inserted into the document, e.g&amp;#x2e; using QDomNode::appendChild().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;data&lt;/tt&gt; contains characters which cannot be stored in a CDATA section, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertAfter&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomComment createComment(java.lang.String data)" doc="/**
&lt;p&gt;Creates a new comment for the string &lt;tt&gt;data&lt;/tt&gt; that can be inserted into the document, e.g&amp;#x2e; using QDomNode::appendChild().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;data&lt;/tt&gt; contains characters which cannot be stored in an XML comment, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertAfter&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomDocumentFragment createDocumentFragment()" doc="/**
&lt;p&gt;Creates a new document fragment, that can be used to hold parts of the document, e.g&amp;#x2e; when doing complex manipulations of the document tree.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QDomElement createElement(java.lang.String tagName)" doc="/**
&lt;p&gt;Creates a new element called &lt;tt&gt;tagName&lt;/tt&gt; that can be inserted into the DOM tree, e.g&amp;#x2e; using QDomNode::appendChild().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;tagName&lt;/tt&gt; is not a valid XML name, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;
&lt;p&gt;QDomNode::insertAfter()&lt;/p&gt;

@see &lt;a href=&quot;QDomDocument.html#createElementNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;createElementNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomElement createElementNS(java.lang.String nsURI, java.lang.String qName)" doc="/**
&lt;p&gt;Creates a new element with namespace support that can be inserted into the DOM tree. The name of the element is &lt;tt&gt;qName&lt;/tt&gt; and the namespace URI is &lt;tt&gt;nsURI&lt;/tt&gt;. This function also sets QDomNode::prefix() and QDomNode::localName() to appropriate values (depending on &lt;tt&gt;qName&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;qName&lt;/tt&gt; is an empty string, returns a null element.&lt;/p&gt;

@see &lt;a href=&quot;QDomDocument.html#createElement(java.lang.String)&quot;&gt;&lt;tt&gt;createElement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomEntityReference createEntityReference(java.lang.String name)" doc="/**
&lt;p&gt;Creates a new entity reference called &lt;tt&gt;name&lt;/tt&gt; that can be inserted into the document, e.g&amp;#x2e; using QDomNode::appendChild().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;name&lt;/tt&gt; is not a valid XML name, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertAfter&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)" doc="/**
&lt;p&gt;Creates a new processing instruction that can be inserted into the document, e.g&amp;#x2e; using QDomNode::appendChild(). This function sets the target for the processing instruction to &lt;tt&gt;target&lt;/tt&gt; and the data to &lt;tt&gt;data&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;target&lt;/tt&gt; is not a valid XML name, or data if contains characters which cannot appear in a processing instruction, the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertAfter&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomText createTextNode(java.lang.String data)" doc="/**
&lt;p&gt;Creates a text node for the string &lt;tt&gt;data&lt;/tt&gt; that can be inserted into the document tree, e.g&amp;#x2e; using QDomNode::appendChild().&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;data&lt;/tt&gt; contains characters which cannot be stored as character data of an XML document (even in the form of character references), the behavior of this function is governed by QDomImplementation::InvalidDataPolicy.&lt;/p&gt;

@see &lt;tt&gt;QDomNode::appendChild&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertAfter&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomDocumentType doctype()" doc="/**
&lt;p&gt;Returns the document type of this document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QDomElement documentElement()" doc="/**
&lt;p&gt;Returns the root element of the document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QDomElement elementById(java.lang.String elementId)" doc="/**
&lt;p&gt;Returns the element whose ID is equal to &lt;tt&gt;elementId&lt;/tt&gt;. If no element with the ID was found, this function returns a null element&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Since the QDomClasses do not know which attributes are element IDs, this function returns always a null element&lt;/tt&gt;. This may change in a future version.&lt;/p&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;, that contains all the elements in the document with the name &lt;tt&gt;tagname&lt;/tt&gt;. The order of 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;QDomDocument.html#elementsByTagNameNS(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagNameNS&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDomElement::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; that contains all the elements in the document with the local name &lt;tt&gt;localName&lt;/tt&gt; and a namespace URI of &lt;tt&gt;nsURI&lt;/tt&gt;. The order of 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;QDomDocument.html#elementsByTagName(java.lang.String)&quot;&gt;&lt;tt&gt;elementsByTagName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDomElement::elementsByTagNameNS&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.xml.QDomImplementation implementation()" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDomImplementation.html&quot;&gt;&lt;tt&gt;QDomImplementation&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.xml.QDomNode importNode(com.trolltech.qt.xml.QDomNode importedNode, boolean deep)" doc="/**
&lt;p&gt;Imports the node &lt;tt&gt;importedNode&lt;/tt&gt; from another document to this document. &lt;tt&gt;importedNode&lt;/tt&gt; remains in the original document; this function creates a copy that can be used within this document.&lt;/p&gt;
&lt;p&gt;This function returns the imported node that belongs to this document. The returned node has no parent. It is not possible to import &lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomDocumentType.html&quot;&gt;&lt;tt&gt;QDomDocumentType&lt;/tt&gt;&lt;/a&gt; nodes. In those cases this function returns a null node&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;deep&lt;/tt&gt; is true, this function imports not only the node &lt;tt&gt;importedNode&lt;/tt&gt; but its whole subtree; if it is false, only the &lt;tt&gt;importedNode&lt;/tt&gt; is imported. The argument &lt;tt&gt;deep&lt;/tt&gt; has no effect on &lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDomEntityReference.html&quot;&gt;&lt;tt&gt;QDomEntityReference&lt;/tt&gt;&lt;/a&gt; nodes, since the descendents of &lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt; nodes are always imported and those of &lt;a href=&quot;QDomEntityReference.html&quot;&gt;&lt;tt&gt;QDomEntityReference&lt;/tt&gt;&lt;/a&gt; nodes are never imported.&lt;/p&gt;
&lt;p&gt;The behavior of this function is slightly different depending on the node types:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Node Type&lt;/th&gt;&lt;th&gt;Behavior&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomAttr.html&quot;&gt;&lt;tt&gt;QDomAttr&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The owner element is set to 0 and the specified flag is set to true in the generated attribute. The whole subtree of &lt;tt&gt;importedNode&lt;/tt&gt; is always imported for attribute nodes: &lt;tt&gt;deep&lt;/tt&gt; has no effect.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomDocument.html#QDomDocument(com.trolltech.qt.xml.QDomDocumentType)&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Document nodes cannot be imported.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomDocumentFragment.html&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;If &lt;tt&gt;deep&lt;/tt&gt; is true, this function imports the whole document fragment; otherwise it only generates an empty document fragment.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomDocumentType.html&quot;&gt;&lt;tt&gt;QDomDocumentType&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Document type nodes cannot be imported.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomElement.html&quot;&gt;&lt;tt&gt;QDomElement&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Attributes for which QDomAttr::specified() is true are also imported, other attributes are not imported. If &lt;tt&gt;deep&lt;/tt&gt; is true, this function also imports the subtree of &lt;tt&gt;importedNode&lt;/tt&gt;; otherwise it imports only the element node (and some attributes, see above).&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomEntity.html&quot;&gt;&lt;tt&gt;QDomEntity&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Entity nodes can be imported, but at the moment there is no way to use them since the document type is read-only in DOM level 2.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomEntityReference.html&quot;&gt;&lt;tt&gt;QDomEntityReference&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Descendents of entity reference nodes are never imported: &lt;tt&gt;deep&lt;/tt&gt; has no effect.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomNotation.html&quot;&gt;&lt;tt&gt;QDomNotation&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Notation nodes can be imported, but at the moment there is no way to use them since the document type is read-only in DOM level 2.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomProcessingInstruction.html&quot;&gt;&lt;tt&gt;QDomProcessingInstruction&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The target and value of the processing instruction is copied to the new node.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomText.html&quot;&gt;&lt;tt&gt;QDomText&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The text is copied to the new node.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomCDATASection.html&quot;&gt;&lt;tt&gt;QDomCDATASection&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The text is copied to the new node.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QDomComment.html&quot;&gt;&lt;tt&gt;QDomComment&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The text is copied to the new node.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;QDomNode::insertAfter() QDomNode::replaceChild() QDomNode::removeChild() QDomNode::appendChild()&lt;/p&gt;

@see &lt;tt&gt;QDomElement::setAttribute&lt;/tt&gt;
@see &lt;tt&gt;QDomNode::insertBefore&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toByteArray(int arg__1)" doc="/**
&lt;p&gt;Converts the parsed document back to its textual representation and returns a &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; containing the data encoded as UTF-8.&lt;/p&gt;
&lt;p&gt;This function uses &lt;tt&gt;arg__1&lt;/tt&gt; as the amount of space to indent subelements.&lt;/p&gt;

@see &lt;a href=&quot;QDomDocument.html#toString(int)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toByteArray()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDomDocument.html#toByteArray(int)&quot;&gt;&lt;tt&gt;toByteArray&lt;/tt&gt;&lt;/a&gt;(1). */"/>
    <method name="public final java.lang.String toString(int arg__1)" doc="/**
&lt;p&gt;Converts the parsed document back to its textual representation.&lt;/p&gt;
&lt;p&gt;This function uses &lt;tt&gt;arg__1&lt;/tt&gt; as the amount of space to indent subelements.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDomDocument.html#toString(int)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(1). */"/>
</class>
