note 19451 added to function.xmltree
| From: | ed at concordia dot ab dot ca | Date: | Wed, 27 Feb 2002 22:17:52 +0000 |
| Subject: | note 19451 added to function.xmltree | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27138@lists.php.net to get a copy of this message | ||
After 4.1.0, a tag's ->name property is now referenced as ->tagname. Attributes retain
the previous ->name nomenclature.
For tags, $child->name becomes $child->tagname. For attributes, you'd still use
$child->name.
Note also that text sections are no longer nested in their containers with a name of
'text', instead they are accessed as a property of their parents named 'value'.
For instance, $child->children[0]->content becomes $child->value.
--
http://www.php.net/manual/en/function.xmltree.php
http://master.php.net/manage/user-notes.php?action=edit+19451
http://master.php.net/manage/user-notes.php?action=delete+19451
http://master.php.net/manage/user-notes.php?action=reject+19451