XML to CSV Conversion

R

Ravi

Hi All,

Does anyone have a perl script handy to show me how to convert an XML
document to CSV format ?

Thanks in advance.
 
J

James Willmore

On 18 Aug 2003 06:53:19 -0700
Does anyone have a perl script handy to show me how to convert an
XML document to CSV format ?

Someone has gone to the trouble of creating the XML::CSV module just
for this purpose.

HTH

Jim
 
J

James E Keenan

James Willmore said:
On 18 Aug 2003 06:53:19 -0700


Someone has gone to the trouble of creating the XML::CSV module just
for this purpose.

The shorthand description of XML::CSV is: "Perl extension converting CSV
files to XML". I couldn't find anything in the documentation that suggests
that this module goes the other way around.
 
J

James Willmore

James E Keenan said:
The shorthand description of XML::CSV is: "Perl extension converting CSV
files to XML". I couldn't find anything in the documentation that suggests
that this module goes the other way around.

You appear to be correct. How about:
AnyData::Format::XML

-or- you could perform the same search I used to find this - go to
http://search.cpan.org/

There are several XML modules listed there - some use SAX, others
Expat, others are pure Perl. I played around with XML, but have had
no real need to use it. I'd like to, because XML files can be used in
some many different ways - just have not found them time.

Or you could write your own - which I think you wanted to avoid doing.

HTH and sorry I can't be of more help - maybe someone else who uses
XML regularlly can chime in.

Jim
 
Joined
Mar 7, 2025
Messages
63
Reaction score
0
To convert an XML file to CSV format use a professional conversion tool that can save time and effort. The Softaken XML Converter Tool is a simple way to handle XML to CSV conversion without manual coding. You need to add the XML file, choose CSV as the output format and start the conversion process. It accurately converts XML into CSV while keeping the data accurate and well-structured. It also supports bulk conversion which is helpful when working with multiple XML files. With its user-friendly interface and quick performance it is a reliable solution for converting XML files to CSV smoothly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,344
Messages
2,571,423
Members
48,794
Latest member
massivestack

Latest Threads

Top