<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="tidy.body" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>tidy::body</refname>
  <refname>tidy_get_body</refname>
  <refpurpose>Returns a <classname>tidyNode</classname> object starting from the &lt;body&gt; tag of the tidy parse tree</refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <para>&style.oop;</para>
  <methodsynopsis role="tidy">
   <modifier>public</modifier> <type class="union"><type>tidyNode</type><type>null</type></type><methodname>tidy::body</methodname>
   <void/>
  </methodsynopsis>
  <para>&style.procedural;</para>
  <methodsynopsis>
   <type class="union"><type>tidyNode</type><type>null</type></type><methodname>tidy_get_body</methodname>
   <methodparam><type>tidy</type><parameter>tidy</parameter></methodparam>
  </methodsynopsis>
  <para>
   Returns a <classname>tidyNode</classname> object starting from the 
   &lt;body&gt; tag of the tidy parse tree.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>tidy</parameter></term>
     <listitem>
      <para>
       &tidy.object;
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns a <classname>tidyNode</classname> object starting from the 
   &lt;body&gt; tag of the tidy parse tree.
  </para>
 </refsect1>

 <refsect1 role="examples">
  &reftitle.examples;
  <para>
   <example>
    <title><function>tidy::getBody</function> example</title>
    <programlisting role="php">
<![CDATA[
<?php
$html = '
<html>
  <head>
    <title>test</title>
  </head>
  <body>
    <p>paragraph</p>
  </body>
</html>';

$tidy = tidy_parse_string($html);

$body = $tidy->Body();
echo $body->value;
?>
]]>
    </programlisting>
    &example.outputs;
    <screen>
<![CDATA[
<body>
<p>paragraph</p>
</body>
]]>
    </screen>
   </example>
  </para>
 </refsect1>

 <refsect1 role="seealso">
  &reftitle.seealso;
  <simplelist>
   <member><function>tidy::head</function></member>
   <member><function>tidy::html</function></member>
  </simplelist>
 </refsect1>
 
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
