Script for converting CSV imported XML into more structured XML