Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

dralagen/csv2xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv2xml GitHub version Build Status

It's java converter to parse en csv file to xml file.

This parser is compatible with openDataWrapper the lodpaddle wrapper

Maven dependency

<dependency>
    <groupId>fr.dralagen</groupId>
    <artifactId>csv2xml</artifactId>
    <version>0.1</version>
</dependency>

Example of parser:

Input file

name;description;date
element 1;It's my first element;22/10/2014
element 2;;24/10/2014
third element;It's my third element;

Output file

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document>
<data>
<element>
<name>element 1</name>
<description>It's my first element</description>
<date>22/10/2014</date>
</element>
<element>
<name>element 2</name>
<description/>
<date>24/10/2014</date>
</element>
<element>
<name>third element</name>
<description>It's my third element</description>
<date/>
</element>
</data>
</document>