Fink

Package csv2xml-0.6-10

SystemCVS/rsync Source DistributionsDebian Binary Distributions
stable RSS feed stableunstable RSS feed unstablestableunstable
10.9/x86_64
 
 
 
 
10.8/x86_64
 
 
 
 
10.7/x86_64
 
 
 
 
10.6/x86_64
 
 
 
10.6/i386
 
 
 
10.5/i386 *
 
 
 
10.5/powerpc *
 
 
 
10.4/i386 *
 
 
 
10.4/powerpc *
 
 
 
10.3/powerpc *
 
 
 
10.2-gcc3.3/powerpc *
 
 
 
 
10.2/powerpc *
 
 
 
 
10.1/powerpc *
 
 
 
 
Description:   CSV to XML converter (0.6-10)
A simle csv to xml converter. Reads csv files and writes valid xml records to standard output.
Usage Hints:   
If a field in your file contains a comma, or a CR/LF then you need to escape these special characters, you do this by starting the text field with a quote (") and ending it with another quote. Because a quote is the escape character, you need to be able to escape the escape character, this is done by placing a quote in front of the quote (""). Here are descriptions of each mode format. Mode 0: shell# csv2xml -m=0 < test.csv <row> <field0>one</field0> <field1>two</field1> <field2>three</field2> </row> <row> <field0>fish</field0> <field1>fishing</field1> <field2>fishes</field2> </row> Mode 1: shell# csv2xml -m=1 < test.csv <row> <field0 value="one" /> <field1 value="two" /> <field2 value="three" /> </row> <row> <field0 value="field0" /> <field1 value="field1" /> <field2 value="field2" /> </row> Mode 2: shell# csv2xml -m=2 < test.csv <row> <item name="field0">one</item> <item name="field1">two</item> <item name="field2">three</item> </row> <row> <item name="field0">fish</item> <item name="field1">fishing</item> <item name="field2">fishes</item> </row>
Section:   10.5-EOL/text
Maintainer:   Jason Park <jjpark74ATyahooDOTcom>
Website:   http://csv2xml.sourceforge.net/
License:   BSD
Info-File:   dists/10.4/stable/main/finkinfo/10.5-EOL/text/csv2xml.info
CVS log, Last Changed: Sun, 07 Jul 2013 17:07:32 (UTC)

Section list - Flat package list - Search packages

(*) = Unsupported distribution.