Re: [xsl] CSV to XML

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

In Java there is a Xerces sample that does exactly this, see CSVParser and CSVConfiguration from:

I posted also an XSLT 2.0 stylesheet that currently handles tab delimited files but can be very easily changed to handle CSV files:

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Arthur Maloney wrote:
Hello xsl-list,

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

  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
Ideally C# but Java will do.

Current Thread