I may use Attr/@rowTag to detect a XML file. How to detect a CSV or FLAT file? Do we always set format=csv for a CSV file?