Command xml2csv


Name

xml2csv converts an xml file to a csvl file

Synopsis

xml2csv [ serialization options ] [options]


Options


-headerEmit a header CSV record
-attrUse attributes instead of elements for field data
-delim delimchardeliminate columns with delimchar, default ","
-tabtab delimiter, overrides -delim
-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

Result
foo,bar

Return Value

Returns 0 if the conversion is successful

See csv2xml

Commands
CategoryCommands


There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki