Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 742

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_DomDocumentFragment - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>Class CL_DomDocumentFragment</h1>
<p>  DOM Document Fragment class. <a href="#description">More...</a></p>
<p>Derived from:
<a href="CL_DomNode.html">CL_DomNode</a>
<br>
Derived by:
<i>none</i>
<br>Group: Core (XML)</p>
<p>
#include &lt;ClanLib/core.h&gt;
<p>
<table border=0 width=100%>
</table>
<p><b>Construction:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomDocumentFragment__CL_DomDocumentFragment.html">CL_DomDocumentFragment</a></p></td><td valign=top><p>  Constructs a DOM Document Fragment handle.</p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Core/XML!
  !header=core.h!
  <p>DocumentFragment is a "lightweight" or "minimal" Document object. 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 Node for this purpose. While it is true
  that a Document object could fulfil this role, a Document object can
  potentially be a heavyweight object, depending on the underlying
  implementation. What is really needed for this is a very lightweight
  object. DocumentFragment is such an object.</p>
  <p>Furthermore, various operations -- such as inserting nodes as children
  of another Node -- may take DocumentFragment objects as arguments; this
  results in all the child nodes of the DocumentFragment being moved to the
  child list of this node.</p>
  <p>The children of a DocumentFragment node are zero or more nodes
  representing the tops of any sub-trees defining the structure of the
  document. DocumentFragment 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
  DocumentFragment might have only one child and that child node could be
  a Text node. Such a structure model represents neither an HTML document
  nor a well-formed XML document.</p>
  <p>When a DocumentFragment is inserted into a Document (or indeed any
  other Node that may take children) the children of the DocumentFragment
  and not the DocumentFragment itself are inserted into the Node. This
  makes the DocumentFragment very useful when the user wishes to create
  nodes that are siblings; the DocumentFragment acts as the parent of these
  nodes so that the user can use the standard methods from the Node interface,
  such as insertBefore() and appendChild().</p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->