147 lines
8.7 KiB
HTML
147 lines
8.7 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<title>HTML Tidy: Document Tree</title>
|
||
|
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript" src="resize.js"></script>
|
||
|
<script type="text/javascript" src="navtree.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(initResizable);
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div! -->
|
||
|
|
||
|
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
|
||
|
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectname">HTML Tidy
|
||
|
 <span id="projectnumber">0.1</span>
|
||
|
</div>
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<!-- Generated by Doxygen 1.7.5.1 -->
|
||
|
</div>
|
||
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||
|
<div id="nav-tree">
|
||
|
<div id="nav-tree-contents">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="splitbar" style="-moz-user-select:none;"
|
||
|
class="ui-resizable-handle">
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
initNavTree('group__Tree.html','');
|
||
|
</script>
|
||
|
<div id="doc-content">
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#func-members">Functions</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">Document Tree</div> </div>
|
||
|
</div>
|
||
|
<div class="contents">
|
||
|
<table class="memberdecls">
|
||
|
<tr><td colspan="2"><h2><a name="func-members"></a>
|
||
|
Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac70f893c5cd5805bf76b393ad07c93c6"></a><!-- doxytag: member="Tree::tidyGetRoot" ref="gac70f893c5cd5805bf76b393ad07c93c6" args="(TidyDoc tdoc)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetRoot</b> (<a class="el" href="structTidyDoc.html">TidyDoc</a> tdoc)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae539f5031bd1e039458a7fffb07a2b7a"></a><!-- doxytag: member="Tree::tidyGetHtml" ref="gae539f5031bd1e039458a7fffb07a2b7a" args="(TidyDoc tdoc)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetHtml</b> (<a class="el" href="structTidyDoc.html">TidyDoc</a> tdoc)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8bc403902d8535a6dab3efc29519d970"></a><!-- doxytag: member="Tree::tidyGetHead" ref="ga8bc403902d8535a6dab3efc29519d970" args="(TidyDoc tdoc)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetHead</b> (<a class="el" href="structTidyDoc.html">TidyDoc</a> tdoc)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga860430a9ae7b9d347f0f7eb4204b3046"></a><!-- doxytag: member="Tree::tidyGetBody" ref="ga860430a9ae7b9d347f0f7eb4204b3046" args="(TidyDoc tdoc)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetBody</b> (<a class="el" href="structTidyDoc.html">TidyDoc</a> tdoc)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0da0a16a07321623bda6a02a397111ca"></a><!-- doxytag: member="Tree::tidyGetParent" ref="ga0da0a16a07321623bda6a02a397111ca" args="(TidyNode tnod)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetParent</b> (<a class="el" href="structTidyNode.html">TidyNode</a> tnod)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0ef21eb446a56c3874a993b6f3966e73"></a><!-- doxytag: member="Tree::tidyGetChild" ref="ga0ef21eb446a56c3874a993b6f3966e73" args="(TidyNode tnod)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetChild</b> (<a class="el" href="structTidyNode.html">TidyNode</a> tnod)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga60f48e1a0981ccfa027e62f73f0b1e7d"></a><!-- doxytag: member="Tree::tidyGetNext" ref="ga60f48e1a0981ccfa027e62f73f0b1e7d" args="(TidyNode tnod)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetNext</b> (<a class="el" href="structTidyNode.html">TidyNode</a> tnod)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7a277d67c8143a8dd66d6c4796e5afa2"></a><!-- doxytag: member="Tree::tidyGetPrev" ref="ga7a277d67c8143a8dd66d6c4796e5afa2" args="(TidyNode tnod)" -->
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyGetPrev</b> (<a class="el" href="structTidyNode.html">TidyNode</a> tnod)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7247560b46127ac69780b938d8bca177"></a><!-- doxytag: member="Tree::tidyAttrFirst" ref="ga7247560b46127ac69780b938d8bca177" args="(TidyNode tnod)" -->
|
||
|
<a class="el" href="structTidyAttr.html">TidyAttr</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyAttrFirst</b> (<a class="el" href="structTidyNode.html">TidyNode</a> tnod)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8af1c83f5c33e767ca40561341089bae"></a><!-- doxytag: member="Tree::tidyAttrNext" ref="ga8af1c83f5c33e767ca40561341089bae" args="(TidyAttr tattr)" -->
|
||
|
<a class="el" href="structTidyAttr.html">TidyAttr</a> TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyAttrNext</b> (<a class="el" href="structTidyAttr.html">TidyAttr</a> tattr)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga32dff6f721a553a54cee0324cda15ba7"></a><!-- doxytag: member="Tree::tidyAttrName" ref="ga32dff6f721a553a54cee0324cda15ba7" args="(TidyAttr tattr)" -->
|
||
|
ctmbstr TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyAttrName</b> (<a class="el" href="structTidyAttr.html">TidyAttr</a> tattr)</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaeb8f272e8135e744b9b3f006517f1073"></a><!-- doxytag: member="Tree::tidyAttrValue" ref="gaeb8f272e8135e744b9b3f006517f1073" args="(TidyAttr tattr)" -->
|
||
|
ctmbstr TIDY_CALL </td><td class="memItemRight" valign="bottom"><b>tidyAttrValue</b> (<a class="el" href="structTidyAttr.html">TidyAttr</a> tattr)</td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||
|
<p>A parsed and, optionally, repaired document is represented by Tidy as a Tree, much like a W3C DOM. This tree may be traversed using these functions. The following snippet gives a basic idea how these functions can be used.</p>
|
||
|
<pre>
|
||
|
void dumpNode( TidyNode tnod, int indent )
|
||
|
{
|
||
|
<a class="el" href="structTidyNode.html">TidyNode</a> child;</pre><pre> for ( child = tidyGetChild(tnod); child; child = tidyGetNext(child) )
|
||
|
{
|
||
|
ctmbstr name;
|
||
|
switch ( tidyNodeGetType(child) )
|
||
|
{
|
||
|
case TidyNode_Root: name = "Root"; break;
|
||
|
case TidyNode_DocType: name = "DOCTYPE"; break;
|
||
|
case TidyNode_Comment: name = "Comment"; break;
|
||
|
case TidyNode_ProcIns: name = "Processing Instruction"; break;
|
||
|
case TidyNode_Text: name = "Text"; break;
|
||
|
case TidyNode_CDATA: name = "CDATA"; break;
|
||
|
case TidyNode_Section: name = "XML Section"; break;
|
||
|
case TidyNode_Asp: name = "ASP"; break;
|
||
|
case TidyNode_Jste: name = "JSTE"; break;
|
||
|
case TidyNode_Php: name = "PHP"; break;
|
||
|
case TidyNode_XmlDecl: name = "XML Declaration"; break;</pre><pre> case TidyNode_Start:
|
||
|
case TidyNode_End:
|
||
|
case TidyNode_StartEnd:
|
||
|
default:
|
||
|
name = tidyNodeGetName( child );
|
||
|
break;
|
||
|
}
|
||
|
assert( name != NULL );
|
||
|
printf( "\%*.*sNode: \%s\\n", indent, indent, " ", name );
|
||
|
dumpNode( child, indent + 4 );
|
||
|
}
|
||
|
}</pre><pre>void dumpDoc( TidyDoc tdoc )
|
||
|
{
|
||
|
dumpNode( tidyGetRoot(tdoc), 0 );
|
||
|
}</pre><pre>void dumpBody( TidyDoc tdoc )
|
||
|
{
|
||
|
dumpNode( tidyGetBody(tdoc), 0 );
|
||
|
}
|
||
|
</pre> </div>
|
||
|
</div>
|
||
|
<div id="nav-path" class="navpath">
|
||
|
<ul>
|
||
|
|
||
|
<li class="footer">Generated on Thu Mar 1 2012 17:53:35 for HTML Tidy by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|