note 39684 added to function.domxml-xmltree

From: Date: Sat, 07 Feb 2004 15:05:39 +0000
Subject: note 39684 added to function.domxml-xmltree
Groups: php.notes 
Request: Send a blank email to php-notes+get-64770@lists.php.net to get a copy of this message
In the function of nutbar, try to replace line 10 by $objptr = $branch->node_value(); and line 15 by : $objptr = &$object[$branch->node_name()]; //without the '[]' it makes an array much more easier to read. Previously, it produces an array like $MyArray[ROOT][0][BRANCH1][0][BRANCH2][0][5], and now $MyArray[ROOT][BRANCH1][BRANCH2][5]. There isn't bugs in the example I use, and I haven't tested with arguments. I think that an implementation of a part of nospam's code is enough. I hope this will help! ---- Manual Page -- http://www.php.net/manual/en/function.domxml-xmltree.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39684 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39684&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39684&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64770) next »