| 
	
 | 
 Posted by Toby A Inkster on 12/20/07 09:57 
Bint wrote: 
 
> I'm trying to parse an xml file into an array tree.  From the PHP site 
> in the comments, I got this code.  But it doesn't work for me.  It's 
> saying that the passed variable is not an array or object in the call 
> end($stack), in the first function startElement().  Anyone know why that 
> would be? $stack is an array, as far as I can tell. 
 
Not the most elegant code, but it seems to work here using PHP 5.2.5.  
Which version of PHP are you using? 
 
--  
Toby A Inkster BSc (Hons) ARCS 
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] 
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 12 days, 20:32.] 
 
                      Sharing Music with Apple iTunes 
          http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/
 
  
Navigation:
[Reply to this message] 
 |