Converting XML Into a PHP Data Structure - How to Use the Class (Page 8 of 9 )
The XMLToArray class we just built is rather simple in function. It parses your XML document into a multidimensional array.
Here is some code that shows you how you might use this now: require_once("XMLToArray.php"); $xml2a = new XMLToArray(); $root_node = $xml2a->parse($xml_text); $drive = array_shift($root_node["_ELEMENTS"]);