Michael has posted a simple script today that takes in XML data and spits back out an array on the other side:
The function takes the specified XML data (which must be in valid XML format) and converts into an array. Any attributes in the XML elements are dropped an only the element values are placed in the array.
The code uses a combination of XPath, DOM, and regular expressions to parse the given XML content.