Skip to Content
XML and Perl
book

XML and Perl

by Mark Riehl, Ilya Sterin
October 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 40m
English
Sams
Content preview from XML and Perl

Exercises

  1. Modify the XML::Twig example shown in Listing 4.9 to also parse the <department_name> elements and include them as part of the output report. Is it easy to retrieve another element earlier in the path?

  2. Find or build a large XML document (at least several MB) and use the Perl Benchmark module to compare parsing times of the various DOM modules. If we needed to extract only a portion of an XML document, is the XML::Twig XPath like mode much faster? How much faster?

For suggested solutions to this exercise, be sure to check out the web site: http://www.xmlproj.com/book/chapter4.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl and XML

Perl and XML

Erik T. Ray, Jason McIntosh
Programming Web Services with Perl

Programming Web Services with Perl

Randy J. Ray, Pavel Kulchenko
Mastering Perl

Mastering Perl

brian d foy
Perl by Example

Perl by Example

Ellie Quigley

Publisher Resources

ISBN: 0735712891Purchase book