[Israel.pm] Starting XML
gaal at forum2.org
Thu Dec 13 23:54:49 PST 2007
There was a related thread here just recently. A summary of the answers:
XML::Simple is what it says, but you might outgrow it very quickly.
XML::LibXML is a Perl binding to the industry-grade c libxml2.
XML::Twig is an alternative, read the tutorial before trying to use it.
Python: xml.dom or xml.sax
I should also mention that XPath is worth at least knowing about.
One-line summary, it's a regexp-like language for querying XML
elements. A great tutorial with examples is here:
On Dec 6, 2007 12:18 PM, Jason Elbaum <jason.elbaum at gmail.com> wrote:
> I don't know much about XML beyond the basics, but I'd like to be able
> to read some relatively small XML files and extract elements of the
> contents. (I'm still working out what to do with them next. Maybe
> build a database.)
> What's the simplest way to do that? Just about everything XML-related
> I find on the web starts with chapters full of definitions,
> specifications and acronyms. There must be a better way.
> I don't need to write XML files, or to validate them, or to edit them.
> Though browsing them and pretty-printing them may come in handy.
> (If it's not Perlish, I don't mind. Whichever language does it best.)
> Jason Elbaum
> Perl mailing list
> Perl at perl.org.il
Gaal Yahas <gaal at forum2.org>
More information about the Perl