119 lines
9.3 KiB
HTML
119 lines
9.3 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
|
<title>XQilla DOM Level 3 API: xercesc::DOMDocumentFragment Class Reference</title>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||
|
</head><body>
|
||
|
<!-- Generated by Doxygen 1.4.6 -->
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul></div>
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul></div>
|
||
|
<div class="nav">
|
||
|
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></div>
|
||
|
<h1>xercesc::DOMDocumentFragment Class Reference</h1><!-- doxytag: class="xercesc::DOMDocumentFragment" --><!-- doxytag: inherits="xercesc::DOMNode" --><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> is a "lightweight" or "minimal" <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> object.
|
||
|
<a href="#_details">More...</a>
|
||
|
<p>
|
||
|
<code>#include <<a class="el" href="DOMDocumentFragment_8hpp-source.html">DOMDocumentFragment.hpp</a>></code>
|
||
|
<p>
|
||
|
Inheritance diagram for xercesc::DOMDocumentFragment:<p><center><img src="classxercesc_1_1DOMDocumentFragment__inherit__graph.png" border="0" usemap="#xercesc_1_1DOMDocumentFragment__inherit__map" alt="Inheritance graph"></center>
|
||
|
<map name="xercesc_1_1DOMDocumentFragment__inherit__map">
|
||
|
<area href="classxercesc_1_1DOMNode.html" shape="rect" coords="50,9,189,33" alt="">
|
||
|
</map>
|
||
|
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1DOMDocumentFragment-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr><td></td></tr>
|
||
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentFragment.html#050845e1550790659f91dce24509d01f">~DOMDocumentFragment</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#050845e1550790659f91dce24509d01f"></a><br></td></tr>
|
||
|
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
|
||
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentFragment.html#c952c994e94ca3b1135877ab322752a9">DOMDocumentFragment</a> ()</td></tr>
|
||
|
|
||
|
</table>
|
||
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
<a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> is a "lightweight" or "minimal" <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> object.
|
||
|
<p>
|
||
|
It is very common to want to be able to extract a portion of a document's tree or to create a new fragment of a document. Imagine implementing a user command like cut or rearranging a document by moving fragments around. It is desirable to have an object which can hold such fragments and it is quite natural to use a <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> for this purpose. While it is true that a <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> object could fulfil this role, a <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> object can potentially be a heavyweight object, depending on the underlying implementation. What is really needed for this is a very lightweight object. <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> is such an object. <p>
|
||
|
Furthermore, various operations -- such as inserting nodes as children of another <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> -- may take <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> objects as arguments; this results in all the child nodes of the <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> being moved to the child list of this node. <p>
|
||
|
The children of a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> node are zero or more nodes representing the tops of any sub-trees defining the structure of the document. <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> nodes do not need to be well-formed XML documents (although they do need to follow the rules imposed upon well-formed XML parsed entities, which can have multiple top nodes). For example, a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> might have only one child and that child node could be a <code><a class="el" href="classxercesc_1_1DOMText.html">DOMText</a></code> node. Such a structure model represents neither an HTML document nor a well-formed XML document. <p>
|
||
|
When a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> is inserted into a <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> (or indeed any other <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> that may take children) the children of the <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> and not the <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> itself are inserted into the <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code>. This makes the <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> very useful when the user wishes to create nodes that are siblings; the <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a></code> acts as the parent of these nodes so that the user can use the standard methods from the <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> interface, such as <code><a class="el" href="classxercesc_1_1DOMNode.html#b53ebbb7276d3d20d24cb486f948717c">insertBefore()</a></code> and <code><a class="el" href="classxercesc_1_1DOMNode.html#de4f6d57748def70f0444b004df96a94">appendChild()</a></code>.<p>
|
||
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
||
|
|
||
|
<p>
|
||
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" name="c952c994e94ca3b1135877ab322752a9"></a><!-- doxytag: member="xercesc::DOMDocumentFragment::DOMDocumentFragment" ref="c952c994e94ca3b1135877ab322752a9" args="()" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">xercesc::DOMDocumentFragment::DOMDocumentFragment </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<a class="anchor" name="050845e1550790659f91dce24509d01f"></a><!-- doxytag: member="xercesc::DOMDocumentFragment::~DOMDocumentFragment" ref="050845e1550790659f91dce24509d01f" args="()" --><p>
|
||
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
||
|
<tr>
|
||
|
<td class="mdRow">
|
||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||
|
<tr>
|
||
|
<td class="md" nowrap valign="top">virtual xercesc::DOMDocumentFragment::~DOMDocumentFragment </td>
|
||
|
<td class="md" valign="top">( </td>
|
||
|
<td class="mdname1" valign="top" nowrap> </td>
|
||
|
<td class="md" valign="top"> ) </td>
|
||
|
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table cellspacing="5" cellpadding="0" border="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
|
||
|
<p>
|
||
|
Destructor.
|
||
|
<p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<hr>The documentation for this class was generated from the following file:<ul>
|
||
|
<li><a class="el" href="DOMDocumentFragment_8hpp-source.html">DOMDocumentFragment.hpp</a></ul>
|
||
|
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:02 2006 for XQilla DOM Level 3 API by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
||
|
</body>
|
||
|
</html>
|