in reply to Re: XML to CSV conversion
in thread XML to CSV conversion

Thanks hdb!!! But is there any other alternative to this? Because the output is a bit lengthy!

Replies are listed 'Best First'.
Re^3: XML to CSV conversion
by hdb (Monsignor) on Jan 14, 2014 at 11:48 UTC

    Well, you need to pick the pieces you want, like:

    print $ref->{originator}{location},"\n";

      What if I want to read the xml input from a file and then process it?

        Well, you open the file, read it in (while setting $/ to undef or to </entry>), and apply some of the suggestions in this thread.