in reply to removing perldata , hashref from XML file

Perl might not be the best tool for translating XML as you have asked. Have you looked into using XSLT for this?

A better option could be to change the code that produces the XML. XML::Dumper seems intended to serialize Perl data structures analogously to Data::Dumper, which is probably not what you want. There is probably a module that does exactly what you want, but XML can also be generated directly.

  • Comment on Re: removing perldata , hashref from XML file

Replies are listed 'Best First'.
Re^2: removing perldata , hashref from XML file
by SaraMirabi (Novice) on May 16, 2020 at 05:36 UTC
    Yes, I checked XSLT and I tried to modify my code but unfortunately, it hasn't worked properly.