This is the Linux app named xml2csv.jar whose latest release can be downloaded as xml2csv-1.1.jar. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named xml2csv.jar with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
xml2csv.jar
DESCRIPTION:
xml2csv is a small command-line tool written in JAVA and can be used on all platforms, for which JRE 8 or higher is available.
Examples:
1. Help
java -jar xml2csv-1.0.jar --help
2. Extract nodes from xml:
java -jar xml2csv-1.0.jar --nodes test/cd_catalog.xml
The result is the full node name and number of repetitions:
/CATALOG=1
/CATALOG/CD=26
/CATALOG/CD/TITLE=26
/CATALOG/CD/ARTIST=26
/CATALOG/CD/COUNTRY=26
/CATALOG/CD/COMPANY=26
/CATALOG/CD/PRICE=26
/CATALOG/CD/YEAR=26
3. Convert all xml nodes to csv
java -jar xml2csv-1.0.jar test/cd_catalog.xml
4. Convert xml to csv, like extract only nodes /CATALOG/CD/TITLE, /CATALOG/CD/ARTIST, /CATALOG/CD/PRICE in format PostgreSQLCsv
java -jar xml2csv-1.0.jar -f PostgreSQLCsv -o '/CATALOG/CD/TITLE, /CATALOG/CD/ARTIST, /CATALOG/CD/PRICE' test/cd_catalog.xml
Audience
Advanced End Users, System Administrators, Developers, End Users/Desktop, Testers
User interface
Console/Terminal, Command-line
Programming Language
Java
This is an application that can also be fetched from https://sourceforge.net/projects/xml2csv-jar/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.