Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Pure Perl XML Reading & Writing

by Anonymous Monk
on Jun 19, 2003 at 22:59 UTC ( #267379=perlquestion: print w/replies, xml ) Need Help??

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

Hello everyone. I'm looking for a pure perl solution to read & write xml. I'd like to be able to install it on any system with perl 5.004+ and just include the modules in a sub directory. Any suggestions? Many thanks :)

Replies are listed 'Best First'.
Re: Pure Perl XML Reading & Writing
by dash2 (Hermit) on Jun 19, 2003 at 23:53 UTC
    CPAN is your friend. I found XML::Ximple and XML::SAX::PurePerl in 2 minutes from the search site. I've never heard of Ximple, but I have heard of XML::SAX::PurePerl and may even have used it.

    Better still, look through here and search for "XML". You want modules with a "p" as the 3rd letter of the DSLIP value (those five little letters). They are pure perl, although you will also need to check that their dependencies are pure perl.

    On the whole, I suspect that your simplest way of doing things is going to be XML::SAX::PurePerl. If you find the SAX interface confusing (I seem to remember that all XML was confusing to me, last time I looked, but that may say more about me than XML), then see if you can use XML::Simple. It requires XML::SAX, but I think you can make XML::SAX wrap around XML::SAX::PurePerl. andramoiennepemousapolutropon

Re: Pure Perl XML Reading & Writing
by gellyfish (Monsignor) on Jun 20, 2003 at 08:32 UTC

    You might want to look at XML::Parser::Lite. This is part of the SOAP::Lite package but is able to be installed as a single file on its own. It has a similar interface to XML::Parser and in principle it might be possible to amend any module that uses the latter to use it.

Re: Pure Perl XML Reading & Writing
by JaWi (Hermit) on Jun 20, 2003 at 09:10 UTC

    I've got good experiences with XML::Mini. It's not the fasted parser I've seen, but sufficient for (most) simple tasks (regarding that it's written in Pure Perl, the performance is not that bad). And it supports paths, which comes in handy sometimes.


    -- JaWi

    "A chicken is an egg's way of producing more eggs."

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2022-10-02 04:16 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (7 votes). Check out past polls.