http://www.perlmonks.org?node_id=1029654

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

Hi brother monks, I'd very much appreciate some help, and some opinions on this particular problem. |I'm pretty new to perl, and I've inherited a project, which involves processing xml documents, and "translating" them into another xml structure. Best illustrated by an example of the kind of thing involved. <Lines> <Characters>O wghat a piece of work is man!</Characters> <Characters>So noble in reason, so infinite in faculty</Characters> <Characters>New paragraph starts here</Characters> </Lines> I need to output the xml file, but insert paragraph tags where appropriate. I also need to do some analysis of the data. I think I may need an abbot's help with this one! Thanks for any help,

Replies are listed 'Best First'.
Re: The best module for handling xml
by Anonymous Monk on Apr 20, 2013 at 16:10 UTC
Re: The best module for handling xml
by Jenda (Abbot) on Apr 22, 2013 at 09:31 UTC

    It all depends on your background and preferences. Apart from those already mentioned, I'd suggest having a look at XML::Rules (It's mine so, you know, I have to do some advertising now and then). Its filter mode might be exactly what you need.

    P.S.: Please use <code> tags around snippets of code, examples of XML etc.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.