Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Could anyone of you please tell me whether there is any module in PERL to convert an XML file to TAB separated file?
If not is there any way to have this conversion happens.

Thank you.

Replies are listed 'Best First'.
Re: Need Info on XML - TAB format
by davorg (Chancellor) on Feb 02, 2007 at 08:51 UTC

    It is, in general, impossible to convert XML documents to a record-based format. This is because XML is hierarchical and doesn't fit into a record-based format.

    However, if you have some particularly simple XML which is really record-based already, then you might be able to produce what you want using and of the standard XML modules. XML::Simple would probably be a good place to start.

Re: Need Info on XML - TAB format
by GrandFather (Saint) on Feb 02, 2007 at 10:10 UTC

    See the replies to XML to CSV where a similar question was asked.


    DWIM is Perl's answer to Gödel