Revision [315]

This is an old revision of CommandXml2csv made by DavidLee on 2008-12-09 13:37:01.

 

Command xml2csv


Name

xml2csv converts an xml file to a csvl file

Synopsis

xml2csv [-header] [-i xml] [-attr] [xmlfile]


Description

-i xml Input supplied directly as an XML expressino
-header Emit a header CSV record
-attr Use attributes instead of elements for field data
xmlfile Name of the xml file to convert, otherwise stdin. Default "-" (stdin)


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

CategoryCommands


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