[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: CSV to XML

Subject: Re: CSV to XML
From: George Cristian Bina <george@xxxxxxx>
Date: Fri, 09 Sep 2005 16:46:16 +0300
c csv to xml
Hi Arthur,

In Java there is a Xerces sample that does exactly this, see CSVParser and CSVConfiguration from:
http://xml.apache.org/xerces2-j/samples-xni.html


I posted also an XSLT 2.0 stylesheet that currently handles tab delimited files but can be very easily changed to handle CSV files:
http://www.oxygenxml.com/forum/ftopic977.html


Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Arthur Maloney wrote:
Hello xsl-list,


Prior to transform, I would like to convert some CSV files to XML


  e.g.
  row 1: fieldName1,fieldName2,fieldName3,...
  ...
  row n: fred,67.8,I love XSLT2.0,...

does anybody have any example code for converting to an XML file

e.g or as attributes
<CsvFileName>
<fieldName1>...</fieldName1>
...
</CsvFileName>
Ideally C# but Java will do.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.