Sophie

Sophie

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

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


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_DomNode - 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_DomNode</h1>
<p>  DOM Node class. <a href="#description">More...</a></p>
<p>Derived from:
<i>none</i>
<br>
Derived by:
<a href="CL_DomAttr.html">CL_DomAttr</a>
<a href="CL_DomCharacterData.html">CL_DomCharacterData</a>
<a href="CL_DomDocument.html">CL_DomDocument</a>
<a href="CL_DomDocumentFragment.html">CL_DomDocumentFragment</a>
<a href="CL_DomDocumentType.html">CL_DomDocumentType</a>
<a href="CL_DomElement.html">CL_DomElement</a>
<a href="CL_DomEntity.html">CL_DomEntity</a>
<a href="CL_DomEntityReference.html">CL_DomEntityReference</a>
<a href="CL_DomNotation.html">CL_DomNotation</a>
<a href="CL_DomProcessingInstruction.html">CL_DomProcessingInstruction</a>
<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_DomNode__CL_DomNode.html">CL_DomNode</a></p></td><td valign=top><p></p></td></tr></table>
<p><b>Attributes:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomNode__get_node_name.html">get_node_name</a></p></td><td valign=top><p>  Returns the node name.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_node_value.html">get_node_value</a></p></td><td valign=top><p>  Returns the node value.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__set_node_value.html">set_node_value</a></p></td><td valign=top><p>  Sets the node value.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_node_type.html">get_node_type</a></p></td><td valign=top><p>  Returns the node type (one of those in the NodeType enum).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_parent_node.html">get_parent_node</a></p></td><td valign=top><p>  Returns the parent of this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_child_nodes.html">get_child_nodes</a></p></td><td valign=top><p>  Returns a NodeList that contains all children of this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_first_child.html">get_first_child</a></p></td><td valign=top><p>  The first child of this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_last_child.html">get_last_child</a></p></td><td valign=top><p>  The last child of this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_previous_sibling.html">get_previous_sibling</a></p></td><td valign=top><p>  The node immediately preceding this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_next_sibling.html">get_next_sibling</a></p></td><td valign=top><p>  The node immediately following this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_attributes.html">get_attributes</a></p></td><td valign=top><p>  A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__get_owner_document.html">get_owner_document</a></p></td><td valign=top><p>  The Document object associated with this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_null.html">is_null</a></p></td><td valign=top><p>  Returns true if this is a null node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_element.html">is_element</a></p></td><td valign=top><p>  Returns true if this is an element node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_attr.html">is_attr</a></p></td><td valign=top><p>  Returns true if this is an attribute node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_text.html">is_text</a></p></td><td valign=top><p>  Returns true if this is a text node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_cdata_section.html">is_cdata_section</a></p></td><td valign=top><p>  Returns true if this is a CDATA section node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_entity_reference.html">is_entity_reference</a></p></td><td valign=top><p>  Returns true if this is an entity reference node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_entity.html">is_entity</a></p></td><td valign=top><p>  Returns true if this is an entity node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_processing_instruction.html">is_processing_instruction</a></p></td><td valign=top><p>  Returns true if this is a processing instruction node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_comment.html">is_comment</a></p></td><td valign=top><p>  Returns true if this is a comment node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_document.html">is_document</a></p></td><td valign=top><p>  Returns true if this is a document node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_document_type.html">is_document_type</a></p></td><td valign=top><p>  Returns true if this is a document type node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_document_fragment.html">is_document_fragment</a></p></td><td valign=top><p>  Returns true if this is a document fragment node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_notation.html">is_notation</a></p></td><td valign=top><p>  Returns true if this is a notation node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__has_child_nodes.html">has_child_nodes</a></p></td><td valign=top><p>  Returns true if this node has any children.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomNode__operator =.html">operator =</a></p></td><td valign=top><p>  Copy assignment operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__operator ==.html">operator ==</a></p></td><td valign=top><p>  Compare operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__insert_before.html">insert_before</a></p></td><td valign=top><p>  Inserts the node new_child before the existing child node ref_child.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__replace_child.html">replace_child</a></p></td><td valign=top><p>  Replaces the child node old_child with new_child in the list of children.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__remove_child.html">remove_child</a></p></td><td valign=top><p>  Removes the child node indicated by old_child from the list of children, and returns it.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__append_child.html">append_child</a></p></td><td valign=top><p>  Adds the node new_child to the end of the list of children of this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__clone_node.html">clone_node</a></p></td><td valign=top><p>  Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__is_same_node.html">is_same_node</a></p></td><td valign=top><p>  Returns whether this node is the same node as the given one.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_element.html">to_element</a></p></td><td valign=top><p>  Returns the Element interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_attr.html">to_attr</a></p></td><td valign=top><p>  Returns the Attribute interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_text.html">to_text</a></p></td><td valign=top><p>  Returns the Text interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_cdata_section.html">to_cdata_section</a></p></td><td valign=top><p>  Returns the CDATA Section interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_entity_reference.html">to_entity_reference</a></p></td><td valign=top><p>  Returns the Entity Reference interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_entity.html">to_entity</a></p></td><td valign=top><p>  Returns the Entity interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_processing_instruction.html">to_processing_instruction</a></p></td><td valign=top><p>  Returns the Processing Instruction interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_comment.html">to_comment</a></p></td><td valign=top><p>  Returns the Comment interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_document.html">to_document</a></p></td><td valign=top><p>  Returns the Document interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_document_type.html">to_document_type</a></p></td><td valign=top><p>  Returns the Document Type interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_document_fragment.html">to_document_fragment</a></p></td><td valign=top><p>  Returns the Document Fragment interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__to_notation.html">to_notation</a></p></td><td valign=top><p>  Returns the Notation interface to this node.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__named_item.html">named_item</a></p></td><td valign=top><p>  Returns the first child node with the specified node name.</p></td></tr></table>
<p><b>Implementation:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomNode__impl.html">impl</a></p></td><td valign=top><p></p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomNode__.html"></a></p></td><td valign=top><p></p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Core/XML!
  !header=core.h!
  <p>The Node interface is the primary datatype for the entire Document Object Model.
  It represents a single node in the document tree. While all objects implementing
  the Node interface expose methods for dealing with children, not all objects
  implementing the Node interface may have children. For example, Text nodes may
  not have children, and adding children to such nodes results in a CL_DOMException
  being thrown.</p>
  <p>The attributes 'node_name', 'node_value' and 'attributes' are included as a
  mechanism to get at node information without casting down to the specific derived
  interface. In cases where there is no obvious mapping of these attributes for a
  specific node_type (e.g., node_value for an Element or attributes for a Comment),
  this returns null. Note that the specialized interfaces may contain additional
  and more convenient mechanisms to get and set the relevant information.</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 -->