Sophie

Sophie

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

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


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_DomElement - 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_DomElement</h1>
<p>  DOM Element 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_DomElement__CL_DomElement.html">CL_DomElement</a></p></td><td valign=top><p>  Constructs a DOM Element handle.</p></td></tr></table>
<p><b>Attributes:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomElement__get_tag_name.html">get_tag_name</a></p></td><td valign=top><p>  Returns the name of the element.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_DomElement__has_attribute.html">has_attribute</a></p></td><td valign=top><p>  Returns true if the element has the specified attribute.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__get_attribute.html">get_attribute</a></p></td><td valign=top><p>  Returns the specified attribute.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__set_attribute.html">set_attribute</a></p></td><td valign=top><p>  Adds a new attribute.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__remove_attribute.html">remove_attribute</a></p></td><td valign=top><p>  Removes an attribute by name.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__get_elements_by_tag_name.html">get_elements_by_tag_name</a></p></td><td valign=top><p>  Returns a NodeList of all descendant elements with a given tag name.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__normalize.html">normalize</a></p></td><td valign=top><p>  Merges any adjacent Text nodes.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomElement__get_text.html">get_text</a></p></td><td valign=top><p>  Returns the text of all child Text nodes appended together.</p></td></tr></table>
<a name="#description"><p><b>Detailed description:</b></p>
  !group=Core/XML!
  !header=core.h!
  <p>By far the vast majority of objects (apart from text) that authors encounter when
  traversing a document are Element nodes. Assume the following XML document:</p>
  <pre>
  &amp;lt;elementExample id="demo"&amp;gt;
   &amp;lt;subelement1/&amp;gt;
   &amp;lt;subelement2&amp;gt;&amp;lt;subsubelement/&amp;gt;&amp;lt;/subelement2&amp;gt;
  &amp;lt;/elementExample/gt;
  </pre>
  <p>When represented using DOM, the top node is an Element node for "elementExample",
  which contains two child Element nodes, one for "subelement1" and one for "subelement2".
  "subelement1" contains no child nodes.</p>
  <p>Elements may have attributes associated with them; since the Element interface
  inherits from Node, the generic Node interface method getAttributes may be used to
  retrieve the set of all attributes for an element. There are methods on the Element
  interface to retrieve either an Attr object by name or an attribute value by name.
  In XML, where an attribute value may contain entity references, an Attr object should
  be retrieved to examine the possibly fairly complex sub-tree representing the attribute
  value.</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 -->