Main Navigation

Content

Perl for XML Processing

Learn Perl Now!
And get a job doing Perl.

Technologies of Interest

XML-LibXML

XML-LibXML is the de-facto standard for XML processing in Perl. It's a comprehensive CPAN module based on the libxml2 library, that provides DOM (Document Object Module), SAX (a stream parser), a pull parser, XPath, and XSLT support. XML-LibXML has good documentation and is actively maintained.

One note is that you should be aware of XML namespaces and how they interact with the DOM and the XML-LibXML API before using this library.

Web Pages about Perl and XML

The Perl XML Project Home Page

Their Frequently Asked Questions List (FAQ)

What to Avoid

XML-Simple

XML-Simple is not so simple when done properly and takes the wrong approach to dealing with XML. Please avoid using it. Look at XML-LibXML for an easy and fast alternative.

Modules for Dealing with Specific Grammars

In addition to generic XML parsers and manipulators, there are many specialised modules on the CPAN for dealing with specific XML grammars. Many of them reside under XML:: namespace. Some prominent examples include:

Sidebar

Footer