note 51434 deleted from ref.dom by didou

From: Date: Sat, 02 Apr 2005 20:49:18 +0000
Subject: note 51434 deleted from ref.dom by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87367@lists.php.net to get a copy of this message
Note Submitter: shruti224 at yahoo dot com ---- 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

« previous php.notes (#87367) next »