php-doc-en/reference/domxml/functions/DomNode-get-content.xml
Mehdi Achour 262e2e4dc7 WS, prepare for new style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188209 c90b9560-bf6c-de11-be94-00142212c4b1
2005-06-12 04:42:09 +00:00

66 lines
1.4 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<refentry id='function.domnode-get-content'>
<refnamediv>
<refname>DomNode->get_content</refname>
<refpurpose>
Gets content of node
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>DomNode->get_content</methodname>
<void/>
</methodsynopsis>
<para>
This function returns the content of the actual node.
</para>
<para>
<example>
<title>Getting a content</title>
<programlisting role="php">
<![CDATA[
<?php
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the document\n";
exit;
}
$root = $dom->document_element();
$node_array = $root->get_elements_by_tagname("element");
for ($i = 0; $i<count($node_array); $i++) {
$node = $node_array[$i];
echo "The element[$i] is: " . $node->get_content();
}
?>
]]>
</programlisting>
</example>
</para>
</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:"../../../../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
-->