>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 http://php.net/xml_parse_into_struct, which doesn't generate exactly what you want, but it "generates structures amenable of being transversed in a tree fashion." -mike. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php