note 18638 added to ref.domxml

From: Date: Wed, 30 Jan 2002 06:48:02 +0000
Subject: note 18638 added to ref.domxml
Groups: php.notes 
Request: Send a blank email to php-notes+get-26019@lists.php.net to get a copy of this message
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>" ); ?> -- http://www.php.net/manual/en/ref.domxml.php http://master.php.net/manage/user-notes.php?action=edit+18638 http://master.php.net/manage/user-notes.php?action=delete+18638 http://master.php.net/manage/user-notes.php?action=reject+18638

« previous php.notes (#26019) next »