Buying Options
Perl and XML
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
(PDF)
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?
Description
Perl & XML is aimed at Perl programmers who need to work with XML documents and data. This book gives a complete, comprehensive tour of the landscape of Perl and XML, making sense of the myriad of modules, terminology, and techniques. The last two chapters of Perl and XML give complete examples of XML applications, pulling together all the tools at your disposal.
Full Description
Table of Contents
  1. Chapter 1 Perl and XML

    1. Why Use Perl with XML?

    2. XML Is Simple with XML::Simple

    3. XML Processors

    4. A Myriad of Modules

    5. Keep in Mind...

    6. XML Gotchas

  2. Chapter 2 An XML Recap

    1. A Brief History of XML

    2. Markup, Elements, and Structure

    3. Namespaces

    4. Spacing

    5. Entities

    6. Unicode, Character Sets, and Encodings

    7. The XML Declaration

    8. Processing Instructions and Other Markup

    9. Free-Form XML and Well-Formed Documents

    10. Declaring Elements and Attributes

    11. Schemas

    12. Transformations

  3. Chapter 3 XML Basics: Reading and Writing

    1. XML Parsers

    2. XML::Parser

    3. Stream-Based Versus Tree-Based Processing

    4. Putting Parsers to Work

    5. XML::LibXML

    6. XML::XPath

    7. Document Validation

    8. XML::Writer

    9. Character Sets and Encodings

  4. Chapter 4 Event Streams

    1. Working with Streams

    2. Events and Handlers

    3. The Parser as Commodity

    4. Stream Applications

    5. XML::PYX

    6. XML::Parser

  5. Chapter 5 SAX

    1. SAX Event Handlers

    2. DTD Handlers

    3. External Entity Resolution

    4. Drivers for Non-XML Sources

    5. A Handler Base Class

    6. XML::Handler::YAWriter as a Base Handler Class

    7. XML::SAX: The Second Generation

  6. Chapter 6 Tree Processing

    1. XML Trees

    2. XML::Simple

    3. XML::Parser's Tree Mode

    4. XML::SimpleObject

    5. XML::TreeBuilder

    6. XML::Grove

  7. Chapter 7 DOM

    1. DOM and Perl

    2. DOM Class Interface Reference

    3. XML::DOM

    4. XML::LibXML

  8. Chapter 8 Beyond Trees: XPath, XSLT, and More

    1. Tree Climbers

    2. XPath

    3. XSLT

    4. Optimized Tree Processing

  9. Chapter 9 RSS, SOAP, and Other XML Applications

    1. XML Modules

    2. XML::RSS

    3. XML Programming Tools

    4. SOAP::Lite

  10. Chapter 10 Coding Strategies

    1. Perl and XML Namespaces

    2. Subclassing

    3. Converting XML to HTML with XSLT

    4. A Comics Index

  1. Colophon

View Full Table of Contents
Product Details
Title:
Perl and XML
By:
Erik T. Ray, Jason McIntosh
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
April 2002
Ebook Release:
June 2009
Pages:
216
Print ISBN:
978-0-596-00205-3
| ISBN 10:
0-596-00205-X
Ebook ISBN:
978-0-596-55600-6
| ISBN 10:
0-596-55600-4
Customer Reviews
About the Author
  1. Jason McIntosh

    Jason McIntosh lives and works in and around Boston. He has co-authored two O'Reilly books, Mac OS X in a Nutshell and Perl & XML, and writes occasional columns and weblog entries for the O'Reilly Network. His homepage is at http://www.jmac.org.

    View Jason McIntosh's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Perl & XML are West African green monkeys. The green monkey, more commonly known as a vervet, is named for its yellow to olive-green fur. Most vervets live in semi-arid regions of sub-Saharan Africa, but some colonies, thought to be descendants of escaped pets, exist in St. Kitts, Nevis, and Barbados. The vervet's diet mainly consists of fruit, seeds, flowers, leaves, and roots, but it sometimes eats small birds and reptiles, eggs, and insects. The largely vegetarian nature of the vervet's diet creates problems for farmers sharing its land, who often complain of missing fruits and vegetables in areas where vervets are common. To control the problem, some farmers resort to shooting the monkeys, who often leave small orphan vervets behind. Some of these orphans are, controversially, sold as pets around the world. Vervets are also bred for use in medical research; some vervet populations are known to carry immunodeficiency viruses that might be linked to similar human viruses.

The green monkey uses a sophisticated set of vocalizations and visual cues to communicate a wide range of emotions, including anger, alarm, pain, excitement, and sadness. The animal is considered highly intelligent and, like other primates, its ability to express intimacy and anxiety is similar to that of humans. Ann Schirmer was the production editor and copyeditor for Perl & XML. Emily Quill was the proofreader. Claire Cloutier and Leanne Soylemez provided quality control. Phil Dangler, Julie Flanagan, and Sarah Sherman provided production assistance. Joe Wizda wrote the index.

Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Royal Natural History. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.

Melanie Wang designed the interior layout, based on a series design by David Futato. Neil Walls converted the files from Microsoft Word to FrameMaker 5.5.6 using tools written in Perl by Erik Ray, Jason McIntosh, and Neil Walls. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Ann Schirmer.

  • Book cover of Perl and XML