Script to convert XML data into wp-importer acceptable format