(no version information, might be only in CVS)
DomDocument_>document_element __
Returns root element node
Description
object
DomDocument_>document_element ( void )
This function returns the root element node of a document_
The following example returns just the element with name CHAPTER and
prints it_ The other node __ the comment __ is not returned_
Ejemplo 1_ Retrieving root element <?php
include("example_inc");
if(!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the document\n";
exit;
}
$root = $dom_>document_element();
print_r($root);
?> |
|