Package csv2xml-0.6-10
| System | Binary Distributions | CVS/rsync Source Distributions | |
|---|---|---|---|
10.8/x86_64 | |||
10.7/x86_64 | |||
10.6/x86_64 | |||
10.6/i386 | |||
10.5/i386 | |||
10.5/powerpc | 0.6-10 | ||
| 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: | text | |
| Maintainer: | Jason Park <jjpark74ATyahooDOTcom> | |
| Website: | http://csv2xml.sourceforge.net/ | |
| License: | BSD | |
| Info-File: | dists/10.4/stable/main/finkinfo/text/csv2xml.info CVS log, Last Changed: Sun, 19 Feb 2012 01:00:09 (UTC) | |
Section list - Flat package list - Search packages
(*) = Unsupported distribution.