Wiki source for CommandXml2csv


Show raw source

======Command xml2csv======

====Name====
**xml2csv** converts an xml file to a csvl file

====Synopsis====
xml2csv [ [[SerializationOptions 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 ","||
||-tab||tab delimiter, overrides -delim||
||-quote quotechar|| quote with quote character, default '"'||

Supports the standard [ [[SerializationOptions serialization options]] ]

====Example====
%%(xml)
xml2csv <<EOF
<root>
<row>
<col>foo</col>
<col>bar</col>
</row>
</root>
EOF
%%
Result
%%
foo,bar
%%
====Return Value====
Returns 0 if the conversion is successful
----
See [[CommandCsv2xml csv2xml]]

[[Commands]]
[[CategoryCommands]]


Valid XHTML :: Valid CSS: :: Powered by WikkaWiki