I need a PHP script to parse the nodes of the attached XML file to a CSV file. I need the header row to reflect the names of the nodes (and child nodes) on the XML tree. As you can see by the XML file, the products are sorted as "items" - obviously each item will be a new row in the CSV.
I already have a script that does this but it seems to be lacking in that it misses certain child nodes.