Reads csv and xml, Returns xml or json result