note 50274 added to function.domxml-xmltree
| From: | php-general at lists dot php dot net | Date: | Wed, 23 Feb 2005 14:38:31 +0000 |
| Subject: | note 50274 added to function.domxml-xmltree | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85437@lists.php.net to get a copy of this message | ||
Replacing line 10 works well, but replacing line 15 causes some errors. I have a tree like:
<admin>
<user level="0">
<username>admin</username>
<password>admin_pass</password>
</user>
<user level="1">
<username>moder</username>
<password>moder_pass</password>
</user>
</admin>
when I remove those brackets only the last <user> is included into array. In this example it
would be
<user level="1">
<username>moder</username>
<password>juozux</password>
</user>
no user name admin, etc.
p.s. I don't store passwords in plain text in xml, that was just an example :))
----
Manual Page -- http://www.php.net/manual/en/function.domxml-xmltree.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50274
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50274&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50274&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50274&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50274&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50274&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50274&report=yes
Search -- http://master.php.net/manage/user-notes.php