Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

The best module for handling xml

by glassbead (Initiate)
on Apr 20, 2013 at 16:07 UTC ( #1029654=perlquestion: print w/replies, xml ) Need Help??
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1029654]
Approved by NetWallah
help
Chatterbox?
[choroba]: The only problem you can't solve by adding more tests is the problem of having too many tests.
[stevieb]: choroba Been there, done that :) Better too many than not enough though!
[stevieb]: I very often write a base set of unit tests before writing any code. It helps dictate the API, and ensures my earliest of ideas stay on track.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-07-21 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.