Revision [1051]
This is an old revision of CommandXml2csv made by DavidLee on 2009-11-25 18:16:56.
Command xml2csv
Name
xml2csv converts an xml file to a csvl fileSynopsis
xml2csv [ serialization options ] [options]Options
-header | Emit a header CSV record |
-attr | Use attributes instead of elements for field data |
-delim delimchar | deliminate columns with delimchar, default "," |
-quote quotechar | quote with quote character, default '"' |
Supports the standard [ serialization options ]
Example
xml2csv <<EOF
<root>
<row>
<col>foo</col>
<col>bar</col>
</row>
</root>
EOF
<root>
<row>
<col>foo</col>
<col>bar</col>
</row>
</root>
EOF
Result
foo,bar
Return Value
Returns 0 if the conversion is successfulCommands
CategoryCommands