note 51434 added to ref.dom

From: Date: Wed, 30 Mar 2005 21:10:33 +0000
Subject: note 51434 added to ref.dom
Groups: php.notes 
Request: Send a blank email to php-notes+get-87214@lists.php.net to get a copy of this message
Note for : markciliavincenti at NOSPAM dot gmail dot com The code that you wrote doesnt work for sample xml like <Test name='xyz'> <TestCase type='all'> <TestElement name='syn' comparison='eq' value='on' /> </TestCase> </Test> Here is the raw array structure: Array ( [Test] => Array ( [0] => Array ( [name] => xyz ) ) ) You need to move the child checking loop after the else. But that still has an issue, as when I moved it I got the following output Array ( [Test] => Array ( [0] => Array ( [name] => xyz [#text] => Array ( [0] => [1] => ) [TestCase] => Array ( [0] => Array ( [type] => all [#text] => Array ( [0] => [1] => ) [TestElement] => Array ( [0] => Array ( [name] => syn [comparison] => eq [value] => on ) ) ) ) ) ) ) I see this new attribute [#text]. Could you please tell me how do i avoid that? Thanks, --Shruti ---- Manual Page -- http://www.php.net/manual/en/ref.dom.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51434 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51434&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51434&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51434&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51434&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51434&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51434&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87214) next »