Additions:
The input CSV file is read using the text encoding [[SerializationOptions serialization options]].
Deletions:
Additions:
||-trim||Trim the output by ignoring any data after the last column specified in -colnames or -header||
||-max #||Combine the data in the last field by ignoring any more delimiters after the # of fields is specifed, or if # is <=0 then use the number of colums||
||-max #||Combine the data in the last field by ignoring any more delimiters after the # of fields is specifed, or if # is <=0 then use the number of colums||
Additions:
If both -colnames and -header are specified then -colnames takes precedence but the header is still read (and ignored).
Deletions:
Additions:
====Examples====
Deletions:
Additions:
||-root rootname||Use "rootname" as the root element name, default "root"||
||-row rowname|| use "rowname" as each row's element name, default "row"||
||-col colname|| use "colname" as each column's element name (or for attribute normal format, the attribute prefix)||
||-colnames names|| Use a sequence or , separated list of strings to specify the column names||
||-delim delimchar|| deliminate columns with delimchar, default ","||
||-tab ||Use tab char as delimitor. Synonymous for -delim <[ "	" ]>||
||-quote quotechar|| quote with quote character, default "||
||-encoding encoding ||read csv file in encoding (default "cp1252")||
||-header || read 1 row from the csv file and use as column names (element or attribute)||
||-attr || Output in attribute normal format (each column is an attribute), default row normal format||
||-skip lines ||Skip # lines before reading header or data ||
||csvfile || Name of the csv file to convert, otherwise stdin. Default "-" (stdin)||
||-row rowname|| use "rowname" as each row's element name, default "row"||
||-col colname|| use "colname" as each column's element name (or for attribute normal format, the attribute prefix)||
||-colnames names|| Use a sequence or , separated list of strings to specify the column names||
||-delim delimchar|| deliminate columns with delimchar, default ","||
||-tab ||Use tab char as delimitor. Synonymous for -delim <[ "	" ]>||
||-quote quotechar|| quote with quote character, default "||
||-encoding encoding ||read csv file in encoding (default "cp1252")||
||-header || read 1 row from the csv file and use as column names (element or attribute)||
||-attr || Output in attribute normal format (each column is an attribute), default row normal format||
||-skip lines ||Skip # lines before reading header or data ||
||csvfile || Name of the csv file to convert, otherwise stdin. Default "-" (stdin)||
Deletions:
-row rowname use "rowname" as each row's element name, default "row"
-col colname use "colname" as each column's element name (or for attribute normal format, the attribute prefix)
-colnames names Use a sequence or , separated list of strings to specify the column names
-delim delimchar deliminate columns with delimchar, default ","
-tab Use tab char as delimitor. Synonymous for -delim <[ "	" ]>
-quote quotechar quote with quote character, default "
-encoding encoding read csv file in encoding (default "cp1252")
-header read 1 row from the csv file and use as column names (element or attribute)
-attr Output in attribute normal format (each column is an attribute), default row normal format
-skip lines Skip # lines before reading header or data
csvfile Name of the csv file to convert, otherwise stdin. Default "-" (stdin)
Additions:
csv2xml [ [[SerializationOptions serialization options]] ] [options] [csvfile]
Supports the standard [ [[SerializationOptions serialization options]] ]
Example
echo foo,bar | csv2xml
Result
Supports the standard [ [[SerializationOptions serialization options]] ]
Example
echo foo,bar | csv2xml
Result
Deletions:
$ echo foo,bar | csv2xml
Additions:
-skip lines Skip # lines before reading header or data
If both -colnames and -header are specified then -colnames takes precedence but the header is still read.
If both -colnames and -header are specified then -colnames takes precedence but the header is still read.
Additions:
-tab Use tab char as delimitor. Synonymous for -delim <[ "	" ]>
Additions:
[[Commands]]
Additions:
-colnames names Use a sequence or , separated list of strings to specify the column names
If -colnames is specified, its argument is taken to be either a sequence of strings, or a single string which is "," seperated which specifieds the column names to be used.
if -header is specified then the first row of the CSV file is read and the values used as column names.
If -colnames is specified, its argument is taken to be either a sequence of strings, or a single string which is "," seperated which specifieds the column names to be used.
if -header is specified then the first row of the CSV file is read and the values used as column names.
Deletions:
Additions:
-root rootname use "rootname" as the root element name, default "root"
-row rowname use "rowname" as each row's element name, default "row"
-col colname use "colname" as each column's element name (or for attribute normal format, the attribute prefix)
-cols colseq Use a sequence of strings to specify the column names
-delim delimchar deliminate columns with delimchar, default ","
-quote quotechar quote with quote character, default "
-row rowname use "rowname" as each row's element name, default "row"
-col colname use "colname" as each column's element name (or for attribute normal format, the attribute prefix)
-cols colseq Use a sequence of strings to specify the column names
-delim delimchar deliminate columns with delimchar, default ","
-quote quotechar quote with quote character, default "
Deletions:
-row rowname use "rowname" as each row's element name, default "row"
-col colname use "colname" as each column's element name (or for attribute normal format, the attribute prefix)
-delim delimchar deliminate columns with delimchar, default ","
-quote quotechar quote with quote character, default "
Additions:
csv2xml [options] [csvfile]
====Options====
-quote quotechar quote with quote character, default "
====Options====
-quote quotechar quote with quote character, default "
Deletions:
====Description====