overhauled the logic to remove duplicate code for csv and xml.
added schema validation step
refactored code
Merge pull request #4 from bdb-bv/master

Refactored code and added plural node support for CSV and XML