Re: [PHP] XML array

2011-07-05 Thread Stuart Dallas
On Tue, Jul 5, 2011 at 4:36 PM, Kanishka kanishkani...@gmail.com wrote: hi this is my first post on php general mailing list, i want to read a xml file to retrieve data. i tried by using DOM and simple xml but i couldn't. the xml file looks like this.. *note head titlethe the

Re: [PHP] XML array

2011-07-05 Thread Tamara Temple
On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting to string type necessary there? I haven't done that before, and it seems to have worked ok... -- PHP General Mailing List

Re: [PHP] XML array

2011-07-05 Thread Stuart Dallas
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple tamouse.li...@gmail.comwrote: On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting to string type necessary there? I haven't done

Re: [PHP] XML array

2011-07-05 Thread Tamara Temple
On Jul 5, 2011, at 12:48 PM, Stuart Dallas wrote: On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting

RE: [PHP] XML Array

2003-07-16 Thread Ralph Guzman
Take a look at patConfiguration http://www.php-tools.de/site.php -Original Message- From: Michael Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:59 PM To: [EMAIL PROTECTED] Subject: [PHP] XML Array Hey, I'm looking for a function to take an XML file and turn it into a

Re: [PHP] XML Array

2003-07-15 Thread Evan Nemerson
I seem to remember seeing something like that on hotscripts.com... On Tuesday 15 July 2003 03:58 pm, Michael Smith wrote: Hey, I'm looking for a function to take an XML file and turn it into a PHP array with the same structure. So if I have: template color#00/color

Re: [PHP] XML Array

2003-07-15 Thread Mike Migurski
I'm looking for a function to take an XML file and turn it into a PHP array with the same structure. So if I have: It's not one function, but you could use xml_parse() with appropriately-defined handlers for character data and open/close elements: http://php.net/xml There is also