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.
Ruby: rexml 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: http://www.zvon.org/xxl/XPathTutorial/General/examples.html On Dec 6, 2007 12:18 PM, Jason Elbaum <[EMAIL PROTECTED]> 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.) > > > Thanks, > > Jason Elbaum > _______________________________________________ > Perl mailing list > [email protected] > http://perl.org.il/mailman/listinfo/perl > -- Gaal Yahas <[EMAIL PROTECTED]> http://gaal.livejournal.com/ _______________________________________________ Perl mailing list [email protected] http://perl.org.il/mailman/listinfo/perl
