Converts an XML document to several flat arrays containing values from parent elements using SimpleXML. Useful for storing xml data in a database.