Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

XML::Tiny

Journal written by drhyde (1683) and posted by brian_d_foy on 2007.01.29 6:38   Printer-friendly
I have been continually frustrated by XML modules. They were all either hard to use, had ridiculous dependencies, took too much memory, or some horrible Lovecraftian combination of those. So, when Adam Kennedy recently muttered on the datetime mailing list about his *::Tiny modules, I decided to do XML right. The result is XML::Tiny, which (according to its documentation) implements a useful subset of XML. Secretly, I think it implements the useful subset. The core parser is less than 20 lines of code and is sufficient to parse an RSS feed or the responses from Amazon's web services. It should be compatible with perl 5.004_05 and with XML::Parser with the XML::Parser::EasyTree style, has no dependencies outside the core, and consumes as near as damnit no memory.

Related Stories

2007's Top Ten Stories on use.Perl 2 comments [+]
Here are the top ten most read stories from 2007 on use.Perl:

Although the numbers aren't that important (so I don't include them), they do roughly follow Zipf's law, and they aren't ranked by date—September seemed to be a good time to write interesting stuff, but also the time that we started posting more stuff to the front page. These are only stories, not journals.

Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.