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

Project Activity

See All Activity >

License

MIT License

Follow xml2csv.jar

xml2csv.jar Web Site

Other Useful Business Software
99.99% Uptime for MySQL and PostgreSQL on Google Cloud Icon
99.99% Uptime for MySQL and PostgreSQL on Google Cloud

Enterprise Plus edition delivers sub-second maintenance downtime and 2x read/write performance. Built for critical apps.

Cloud SQL Enterprise Plus gives you a 99.99% availability SLA with near-zero downtime maintenance—typically under 10 seconds. Get 2x better read/write performance, intelligent data caching, and 35 days of point-in-time recovery. Supports MySQL, PostgreSQL, and SQL Server with built-in vector search for gen AI apps. New customers get $300 in free credit.
Try Cloud SQL Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of xml2csv.jar!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Intended Audience

Advanced End Users, Developers, End Users/Desktop, System Administrators, Testers

User Interface

Command-line, Console/Terminal

Programming Language

Java

Related Categories

Java XML Software, Java CSV Software, Java Command Line Tools

Registered

2019-12-29