Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-release > by-pkgid > 71fef6b9bbd764d1491dbe60964943fb > files > 99

lib64sablotron-devel-1.0.3-7mdv2010.0.x86_64.rpm

<html><head><link rel=StyleSheet href='api-content.css' TYPE='text/css' MEDIA='screen'><title>DOM functions</title>
<script>
function navToEntry(entry) {
  window.location.href='api-' + entry + '.html';
}
function navToGroup(group) {
  var f = parent.frames['toc-container'];
  if (!f)
    window.open ('sparse-toc.html#' + group, 'toc_container');
  else {
    if (f.location.href.search('abc') != -1)
        f.location.href = 'sparse-toc.html#' + group;
    else
        f.location.hash = group;
  }
}
</script>
</head><body bgcolor='white'>
<!--
  -- HEADS UP!  This page was *GENERATED* by APIDOC,
  -- DO NOT EDIT THIS FILE BY HAND!
  -- See http://www.mozilla.org/projects/apidoc for information on APIDOC
  -- The original source file was sablot.xml
  -->
<h1 class='title'>Sablotron Guide and Reference</h1>
<center><table class='api-entry' width='100%' cellspacing='0'border='1' cellpadding='10'>
<tr><td class='entry-heading'>
<table class='entry-heading-table' width='100%' cellpadding='5'cellspacing='0'><tr>
<td class='entry-title' valign='center'><font size='+5'>DOM functions</font></td>
<td class='entry-type' align='center' width='25%'>DOM</td>
</tr></table>
</td></tr>
<tr><td class='entry-summary'>
<h4 class='entry-subhead'>Summary</h4>
Functions introduced by <code><a href='javascript:navToEntry("%2eSablotron%20DOM");'>.Sablotron DOM</a></code> Level 2 interface.
</td></tr>
<tr><td class='entry-description'>
<h4 class='entry-subhead'>Description</h4>
The functions listed below are implemented as defined in the 
<code>DOM Level 2</code> specification, with two exceptions: their names are 
prefixed with SDOM_ and the first argument is always a SablotSituation. 
All the functions return a value of SDOM_Exception type. The functions 
aren't described in details as they correspond to well known DOM methods.
Please, look to sdom.h for more details.
<P><code>createElement</code>, <code>createElementNS</code>, <code>createAttribute</code>, 
<code>createAttributeNS</code>, <code>createTextNode</code>, <code>createCDATASection</code>,
<code>createComment</code>, <code>createProcessingInstruction</code><P><code>getNodeType</code>, <code>getNodeName</code>, <code>getNodeNSUri</code>, 
<code>getNodePrefix</code>, <code>getNodeLocalName</code>, <code>setNodeName</code>, 
<code>getNodeValue</code>, <code>setNodeValue</code><P><code>getParentNode</code>, <code>getFirstChild</code>, <code>getLastChild</code>, 
<code>getPreviousSibling</code>, <code>getNextSibling</code>, <code>getChildNodeIndex</code>,
<code>getChildNodeCount</code>, <code>getOwnerDocument</code><P><code>insertBefore</code>, <code>appendChild</code>, <code>removeChild</code>, 
<code>replaceChild</code><P><code>cloneNode</code><P><code>getAttribute</code>, <code>getAttributeNS</code>, <code>getAttributeNode</code>, 
<code>getAttributeNodeNS</code>, <code>getAttributeNodeIndex</code>, 
<code>getAttributeNodeCount</code>, <code>setAttribute</code>, <code>setAttributeNS</code>, 
<code>setAttributeNode</code>, <code>setAttributeNodeNS</code>, <code>removeAttribute</code>,
<code>removeAttributeNode</code>, <code>getAttributeElement</code>, 
<code>getAttributeList</code><P>
Several functions have been added:
<P><code>disposeNode</code> frees all memory used by the given node.
<P><code>cloneForeignNode</code> clones a node from a different document.
<P><code>docToString</code> serializes the document, returning the resulting string.
<P><code>nodeToString</code> serializes a node (and its descendants), returning
the resulting string.
<P><code>xql</code> performs an XPath query on the DOM tree, returning a list of the 
nodes satisfying the query.
<P>
In addition, there are some functions used to manipulate the node lists 
returned by xql and getAttributeList functions. These include 
<code>getNodeListLength</code>, <code>getNodeListItem</code> and <code>disposeNodeList</code>.
<P>
Finally, there are functions to extract DOM exception-related information 
from the situation object, namely <code>getExceptionCode</code>, 
<code>getExceptionMessage</code> and <code>getExceptionDetails</code>.
</td></tr>
<tr><td class='entry-seealso'>
<h4 class='entry-subhead'>See Also</h4>
<table class='seealso-table'>
<tr class='seealso-groups'><td>Groups</td>
<td>[ <a href='javascript:navToGroup("GROUP_DOM")'>DOM</a> ]</td></tr>
<tr class='seealso-internals'><td>Entries</td>
<td>[ <a href='javascript:navToEntry("%2eSablotron%20DOM");'>.Sablotron DOM</a> ]</td></tr>

</table>
</td></tr>
</table></center><br>
&copy; 2002-2003 Ginger Alliance<BR><i>revision 03-06-30</i><BR>
<center>This page was generated by <a href='http://www.mozilla.org/projects/apidoc' target='other_window'><b>APIDOC</b></a></center>
</body></html>