Publisher: O'Reilly Media
Final Release Date: April 2002
Pages: 218
XML is a text-based markup language that has taken the programming world by storm. More powerful than HTML yet less demanding than SGML, XML has proven itself to be flexible and resilient. XML is the perfect tool for formatting documents with even the smallest bit of complexity, from Web pages to legal contracts to books. However, XML has also proven itself to be indispensable for organizing and conveying other sorts of data as well, thus its central role in web services like SOAP and XML-RPC.As the Perl programming language was tailor-made for manipulating text, few people have disputed the fact that Perl and XML are perfectly suited for one another. The only question has been what's the best way to do it. That's where this book comes in.Perl & XML is aimed at Perl programmers who need to work with XML documents and data. The book covers all the major modules for XML processing in Perl, including XML::Simple, XML::Parser, XML::LibXML, XML::XPath, XML::Writer, XML::Pyx, XML::Parser::PerlSAX, XML::SAX, XML::SimpleObject, XML::TreeBuilder, XML::Grove, XML::DOM, XML::RSS, XML::Generator::DBI, and SOAP::Lite. But this book is more than just a listing of modules; it gives a complete, comprehensive tour of the landscape of Perl and XML, making sense of the myriad of modules, terminology, and techniques.This book covers:
- parsing XML documents and writing them out again
- working with event streams and SAX
- tree processing and the Document Object Model
- advanced tree processing with XPath and XSLT
Most valuably, the last two chapters of Perl & XML give complete examples of XML applications, pulling together all the tools at your disposal. All together, Perl & XML is the single book that gives you a solid grounding in XML processing with Perl.
|
-
Chapter 1 Perl and XML -
Why Use Perl with XML? -
XML Is Simple with XML::Simple -
XML Processors -
A Myriad of Modules -
Keep in Mind... -
XML Gotchas -
Chapter 2 An XML Recap -
A Brief History of XML -
Markup, Elements, and Structure -
Namespaces -
Spacing -
Entities -
Unicode, Character Sets, and Encodings -
The XML Declaration -
Processing Instructions and Other Markup -
Free-Form XML and Well-Formed Documents -
Declaring Elements and Attributes -
Schemas -
Transformations -
Chapter 3 XML Basics: Reading and Writing -
XML Parsers -
XML::Parser -
Stream-Based Versus Tree-Based Processing -
Putting Parsers to Work -
XML::LibXML -
XML::XPath -
Document Validation -
XML::Writer -
Character Sets and Encodings -
Chapter 4 Event Streams -
Working with Streams -
Events and Handlers -
The Parser as Commodity -
Stream Applications -
XML::PYX -
XML::Parser -
Chapter 5 SAX -
SAX Event Handlers -
DTD Handlers -
External Entity Resolution -
Drivers for Non-XML Sources -
A Handler Base Class -
XML::Handler::YAWriter as a Base Handler Class -
XML::SAX: The Second Generation -
Chapter 6 Tree Processing -
XML Trees -
XML::Simple -
XML::Parser's Tree Mode -
XML::SimpleObject -
XML::TreeBuilder -
XML::Grove -
Chapter 7 DOM -
DOM and Perl -
DOM Class Interface Reference -
XML::DOM -
XML::LibXML -
Chapter 8 Beyond Trees: XPath, XSLT, and More -
Tree Climbers -
XPath -
XSLT -
Optimized Tree Processing -
Chapter 9 RSS, SOAP, and Other XML Applications -
XML Modules -
XML::RSS -
XML Programming Tools -
SOAP::Lite -
Chapter 10 Coding Strategies -
Perl and XML Namespaces -
Subclassing -
Converting XML to HTML with XSLT -
A Comics Index -
Colophon |
- Title:
- Perl and XML
- By:
- Erik T. Ray, Jason McIntosh
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- April 2002
- Ebook:
- June 2009
- Pages:
- 218
- 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
|
-
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. |
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Tim Bunce, Alligator Descartes
February 2000
Ebook
:
$31.99
Print & Ebook
:
$43.99
Print
:
$39.99
By Randal L. Schwartz, Erik Olson, Tom Christiansen
August 1997
By Larry Wall, Tom Christiansen, Jon Orwant
July 2000
|
Customer Reviews
12/8/2004 5.0XML for Perl Programmers By Joshua Wait from Undisclosed By Dave Bower from Undisclosed By Kevin Kinnell from Undisclosed By Dominic Mitchell from Undisclosed 5/13/2002 (1 of 1 customers found this review helpful) By Chris Riley from Undisclosed By Charlie Rogers from Undisclosed By Justin Case from Undisclosed
|
|
|