note 18638 deleted from ref.domxml by sniper
| From: | sniper@php.net | Date: | Mon, 03 Nov 2003 15:48:02 +0000 |
| Subject: | note 18638 deleted from ref.domxml by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59716@lists.php.net to get a copy of this message | ||
Note Submitter: nacse@msn.com
----
Well, actually, it works. Try the following code:
<?php
$myXML = "<mrow><mo>Coca-Cola</mo></mrow>";
$docTree = xmltree($myXML);
print("<pre>");
# print whole document structure
print_r( $docTree );
# print content of <mo> element
print $docTree->children[0]->children[0]->children[0]->content;
print( "</pre>" );
?>