Command line

Aug 25, 2011 at 12:25 AM

Hi all. Firstly thanks for this very good API. Is it possible to use this API in a command line approach?

Aug 25, 2011 at 5:11 AM
Edited Aug 27, 2011 at 5:50 AM

Hi especialistaweb,


There is no native command line support. I am not an expert on command line matters, but I suspect most for the XML to CSV converter should be achievable with PowerShell by utilizing the existing API. I may look into this and build command line support into a future version.


Let me know if you need some further help.






From:especialistaweb [email removed]
Sent: Thursday, August 25, 2011 7:26 AM
Subject: Command line [xmltocsv:270298]


From: especialistaweb

Hi all. Firstly thanks for this very good API. Is it possible to use this API in a command line approach?

Aug 26, 2011 at 7:42 PM


Just to stress that command line support would certainly enhance this already very good utility.

Aug 28, 2011 at 4:15 AM

Hi, I am considering command line support for a future version. There is a backlog of outstanding wishes from me and other parties with higher priority at this moment. Support for batch conversions is on the list ("API should accept more than 1 XML input filename at once") and marked as high priority. Batch conversion will not have command line support at this stage. Should you be in a hurry please feel free to roll your own. Its open source after all. You may even consider to submit your results back as a patch to this project ;-)

Nov 1, 2011 at 9:30 PM
Edited Nov 1, 2011 at 9:32 PM

I've made quick and dirty commandline/console version with 2 parameters: XML to be parsed and output directory for CSVs. Unicode hardcoded for the moment.

Please be gentle with your critics, I just downloaded / installed c# yesterday and did what I did.

Batch conversion is just as simple as wrapping the console converter around with old good "DOS" for command.


Nov 10, 2011 at 12:53 AM

Hello Miroslav, thanks for your input. The source code for XML to CSV Tool now contains a commandline version, thanks for giving a push in the right direction. So XML to CSV conversion from commandline prompt is now an integral part of this project. Feedback on features/functionality that might be missing in the current commandline tool are welcomed as I normally don't deal often with commandline matters. Frankly I am a bit in the dark what such tool would look like in an ideal world.