Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Recommend XML modules?

by gunzip (Pilgrim)
on May 17, 2005 at 02:34 UTC ( [id://457644]=perlquestion: print w/replies, xml ) Need Help??

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

I've been given the job of converting a badly written ASP/VBScript appliction into Perl. It accesses XML data files remotely to get price and availability information for hotel bookings. I've just been to CPAN to look at the XML modules but my head is spinning. Can anyone recommend the currently well regarded XML modules for parsing and writing to XML files?

Replies are listed 'Best First'.
Re: Recommend XML modules?
by dragonchild (Archbishop) on May 17, 2005 at 02:39 UTC
    XML::Parser and SAX are the two primary distributions that do XML parsing. As for writing XML, XML::Writer has had good reviews. If you need XPath, there's modules for that, too.

    Personally, I'm an XML::Parser man, but that's primarily because it's the first one I used and it's satisfied all my needs thus far.


    • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
    • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"
Re: Recommend XML modules?
by polettix (Vicar) on May 17, 2005 at 09:36 UTC
    Perl-XML Frequently Asked Questions seems to fit your case. Its abstract:
    This document aims to provide answers to questions that crop up regularly on the 'perl-xml' mailing list. In particular it addresses the most common question for beginners - "Where do I start?"

    Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

    Don't fool yourself.
Re: Recommend XML modules?
by herveus (Prior) on May 17, 2005 at 12:15 UTC
    Howdy!

    I don't have much call to muck about with XML, but the bit I've done has been with XML::Twig, and it has been satisfactory for my needs. You can learn more at http://www.xmltwig.com. mirod may chime in with more...

    yours,
    Michael
Re: Recommend XML modules?
by holli (Abbot) on May 17, 2005 at 04:42 UTC
    If your remote side is a webservice, SOAP::Lite may be an option for you.


    holli, /regexed monk/
Re: Recommend XML modules?
by jhourcle (Prior) on May 17, 2005 at 11:13 UTC

    For ease of use, I like XML::Simple. It will read and write, but there are some XML constructs that it just can't handle, like content and other elements within an element.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://457644]
Approved by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found