xsl-list
[Top] [All Lists]

Re: [xsl] csv to xml converter- contd

2010-03-09 06:30:14
On 8 March 2010 21:24, a kusa <akusa8(_at_)gmail(_dot_)com> wrote:
Hi

The csvtoxml converter by Andrew Welch works very well with single
files. But if I
want to convert it to work with a batch of files, how do I do it? The
variable in the program 'pathtoCSV' points to only a single CSV file
which gets parsed. But I want to be able to use it to work on multiple
files.

Any ideas/tips is appreciated.

You could do one of the following:

- pass the list of files as a parameter
- create an xml file containing the list of files and transform that
- obtain a directory listing using extensions and process the csv
contained in that


cheers
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>