Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1987

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QDomDocumentFragment" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDomDocumentFragment.html#QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment)&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt; class is a tree of QDomNodes which is not usually a complete &lt;a href=&quot;QDomDocument.html&quot;&gt;&lt;tt&gt;QDomDocument&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to do complex tree operations it is useful to have a lightweight class to store nodes and their relations. &lt;a href=&quot;QDomDocumentFragment.html#QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment)&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt; stores a subtree of a document which does not necessarily represent a well-formed XML document.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDomDocumentFragment.html#QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment)&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt; is also useful if you want to group several nodes in a list and insert them all together as children of some node. In these cases &lt;a href=&quot;QDomDocumentFragment.html#QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment)&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt; can be used as a temporary container for this list of children.&lt;/p&gt;
&lt;p&gt;The most important feature of &lt;a href=&quot;QDomDocumentFragment.html#QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment)&quot;&gt;&lt;tt&gt;QDomDocumentFragment&lt;/tt&gt;&lt;/a&gt; is that it is treated in a special way by QDomNode::insertAfter(), QDomNode::insertBefore(), QDomNode::replaceChild() and QDomNode::appendChild(): instead of inserting the fragment itself, all the fragment's children are inserted.&lt;/p&gt;
 */">
    <method name="public QDomDocumentFragment()" doc="/**
&lt;p&gt;Constructs an empty document fragment.&lt;/p&gt;
 */"/>
    <method name="public QDomDocumentFragment(com.trolltech.qt.xml.QDomDocumentFragment 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;
 */"/>
</class>