Added xml-to-csv function