Read csv and xml files and returns xml or json result