Perl and XML

Perl and XML

5.0 1
by Ray
     
 

View All Available Formats & Editions

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

Overview

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.

Product Details

ISBN-13:
9781449366827
Publisher:
O'Reilly Media, Incorporated
Publication date:
04/25/2002
Sold by:
Barnes & Noble
Format:
NOOK Book
Pages:
218
File size:
2 MB

Meet the Author

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.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

5 out of 5 based on 0 ratings. 1 reviews.
Guest More than 1 year ago
XML has begun to appear everywhere. XML has long served in hidden roles on servers and in configuration files. Microsoft Word 2003 for Windows now supports reading and writing XML to in it's wordprocessingML format. Unlike MS Word's horrible 'Save As Web Page' feature, wordprocessingML, or wordML for short, is a clean usable format. The adoption of XML in a user space as common as MS Word in an accessible format means that developers have a rich opportunity in XML. The book Perl and XML focuses on the where Perl and XML meet. In asking the questions 'Why Perl?', the authors Erik Ray and Jason McIntosh point to Perl's ability to handle text, strings, and regular expressions. The authors also point out in a clear and concise manner the strengths of XML as a means for structuring data. The book focuses on working with XML using Perl. Tutorials of the basics of either language are best found in another book. The author of the book recommends Learning Perl for those people starting out in Perl. The book does not assume much knowledge of XML, so it's really an XML book for Perl programmers. If you'd like a more in depth discussion of XML, you might check out Erik Ray's Learning XML. Surveying many conventional XML tools and applications, the book addresses big picture items such as tree processing and streams as well as specific items such as RSS and SOAP. Approaching XML from both a practical point of view and strategic point of view, the author provides detailed examples and observes which strategies work well for handling XML in Perl. Originally, I picked up Perl and XML to address a couple of small projects where I had to deal with XML. The examples in Perl and XML were well written and provided the information I needed to try out common Perl tools for handling XML. Unfortunately, I found that XML processing in Perl was unacceptably slow for the two projects I had at hand. In a short amount of time, I hacked together a faster solution without relying on an XML parser. That said, I gleaned a great deal from Perl and XML which I imagine I will be putting to use soon. If you're not currently working with XML, you may find yourself working sooner than you think. I couldn't more highly recommend Perl and XML for thorough treatment of the subject even if you end up hacking your own solution.