Perl and XML and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Start reading Perl and XML on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Perl and XML [Paperback]

Erik T. Ray , Jason McIntosh
4.2 out of 5 stars  See all reviews (4 customer reviews)
List Price: CDN$ 39.99
Price: CDN$ 39.85 & FREE Shipping. Details
You Save: CDN$ 0.14
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 1 left in stock (more on the way).
Ships from and sold by Amazon.ca. Gift-wrap available.
Want it delivered Monday, October 27? Choose One-Day Shipping at checkout.

Formats

Amazon Price New from Used from
Kindle Edition CDN $18.14  
Paperback CDN $39.85  
Join Amazon Student in Canada


Book Description

May 5 2002 059600205X 978-0596002053 1

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.

Special Offers and Product Promotions

  • Join Amazon Student in Canada


Customers Who Bought This Item Also Bought


Product Details


Product Description

From Amazon

Perl and XML shows how to combine two key Web technologies. Perl is a great language for server-side Web scripting, but XML parsers are generally written in Java or C++. Even so, Perl is everywhere, its strong text processing features make it a good partner for XML, and the chances are that Perl developers will need to work with XML sooner or later. Written with lively good humour, this title explains how to parse, validate and generate XML using a variety of techniques. It does not teach Perl, but does include an excellent short introduction to XML itself.

After setting the scene, the authors set out the basics of XML parsing and writing, using the XML::Parser and XML::Writer modules. This is a good place to start, but the book makes it clear that the future of Perl and XML is in standard interfaces like SAX, which is the subject of another chapter. There is also an explanation of tree processing using XML::Simple or the standard DOM. (Document Object Model). The last chapters cover other XML technologies including XPath, XSLT and SOAP.

Packed with plenty of example code, this title is very much a guide rather than a reference. It does a great job of presenting XML from a Perl perspective, showing why it is useful and how to go about finding and installing the right modules. A couple of short but complete examples at the end help to put it all together, and there are lots of handy tips and warnings sprinkled throughout the book.--Tim Anderson

From the Publisher

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.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Customer Reviews

4.2 out of 5 stars
4.2 out of 5 stars
Most helpful customer reviews
5.0 out of 5 stars What you don't get with this book Oct. 25 2002
By A Customer
Format:Paperback
I read the first review of this book, and I think it's great. In addition, however, I feel compelled to let people know what they are missing.
Specifically, for those of us that do not have a connection to the internet and/or cannot readily download software onto their pc's, this book is only a primer for what resources you will need with XML. I have yet to find a resource that will provide me with a summary of all of the perl modules and library files that are needed by the individual modules mentioned within this book.
For instance, the book provides an example on how to use XML::LibXML and XML::LibXSLT. Unfortunately, the book does not let you know that XML::LibXSLT can only be used if you have XML::LibXML. And the requirements for XML::LibXML include downloading and installing a Gnome library - which may give you trouble on a windows platform. I realize this gripe may be a bit environment specific, but with so many Windows users out there along with an inability to just download anything off CPAN and/or Gnome, I know that I will still have quite a bit of trouble getting the book's examples to 'work'.
Although this book does provide examples for every module covered, it typically only provides a single example. So those of you who are hacker/leaners may be disappointed to find that not many examples are presented for cannabalization.
Was this review helpful to you?
Format:Paperback
I am a professional developer, working mostly with Perl. I work in the field of biology and bioinformatics, but have spent the last 8 years working as a web and database Internet developer. And, I own practically every O'Reilly Perl book ever published (not that I necessarily think they're all worth buying). So, now that you know where I'm coming from...
If you are preparing to do a serious amount of XML development, and you're in the process of determining a) which Perl XML modules on CPAN you want to use, and b) how to use them; and, you don't have a whole lot of time to spend tracking down the sometimes-hard-to-find documentation on these modules; then buying this book is a no-brainer. It covers all the major XML modules, how to use then and really helps you figure out when to use the different modules.
Even if you're not new to XML and Perl, this book would serve as an excellent refresher course on what XML tools are available out there for you... Maybe you haven't looked at your code in awhile, or want to update it to use a newer module from CPAN? Or, maybe you're looking for a better way to do it? Then, this book would definitely help you out.
While a fan of O'Reilly books in general, I'll be the first to admit some of them are more useful than others. I have to give this book a very solid rating, as it's actually useful, comprehensive and very well presented. I find myself cracking it open all the time, especially as my utilization of XML has grown more complicated. It has definitely earned its place in my Aqua Perl book collection.
Was this review helpful to you?
4.0 out of 5 stars Good Overview Of XML And Supporting Perl Modules Feb. 14 2004
Format:Paperback
I have wanted to learn about XML, but I found the pure XML books dry and too theoretical. However, putting XML in the context of something familiar, i.e. Perl, made it much more accessible. This book gives a nice overview of XML parsing using event based and tree based parsers that are available as Perl modules. The book presents SAX and DOM standards compliant modules as well as modules with more Perlish interfaces, e.g. XML::Grove and XML::Twig. It discusses the pros and cons of event vs. tree parsing of XML as well as a few advanced technologies such as database integration and SOAP. The only knock I have on the book is that the examples are a bit contrived and do not show how to solve meaningful problems.
Was this review helpful to you?
3.0 out of 5 stars Nice overview but lacks in useful examples Feb. 2 2003
By Jay
Format:Paperback
Unfortunately, this book suffers from the same affliction that most programming books suffer from. There are absolutely no useful code examples in the book. Yes, as an experienced engineer, I can substitute my own code where the book prints to the screen or searches for monkeys, but hey, I paid for my ticket, sometimes I'd like to be told exactly what to do. If I wanted to figure out everything on my own, I wouldn't have purchased a book in the first place.
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.0 out of 5 stars  10 reviews
53 of 55 people found the following review helpful
5.0 out of 5 stars Another Perl book? Yes, and it's a good one, too. June 6 2002
By M. Riffle - Published on Amazon.com
Format:Paperback
I am a professional developer, working mostly with Perl. I work in the field of biology and bioinformatics, but have spent the last 8 years working as a web and database Internet developer. And, I own practically every O'Reilly Perl book ever published (not that I necessarily think they're all worth buying). So, now that you know where I'm coming from...
If you are preparing to do a serious amount of XML development, and you're in the process of determining a) which Perl XML modules on CPAN you want to use, and b) how to use them; and, you don't have a whole lot of time to spend tracking down the sometimes-hard-to-find documentation on these modules; then buying this book is a no-brainer. It covers all the major XML modules, how to use then and really helps you figure out when to use the different modules.
Even if you're not new to XML and Perl, this book would serve as an excellent refresher course on what XML tools are available out there for you... Maybe you haven't looked at your code in awhile, or want to update it to use a newer module from CPAN? Or, maybe you're looking for a better way to do it? Then, this book would definitely help you out.
While a fan of O'Reilly books in general, I'll be the first to admit some of them are more useful than others. I have to give this book a very solid rating, as it's actually useful, comprehensive and very well presented. I find myself cracking it open all the time, especially as my utilization of XML has grown more complicated. It has definitely earned its place in my Aqua Perl book collection.
6 of 6 people found the following review helpful
3.0 out of 5 stars Good book, but lots of errors in the code Nov. 28 2004
By E. Paulson - Published on Amazon.com
Format:Paperback
I liked the way this book was structured - it was a quick read over a thanksgiving family visit, and it gave a good overview of what XML is and what XML isn't, and what tools are available already in Perl to use it. I particularly liked the middle of the book, and how it dealt with trees and event streams. First there was in short intro chapter on why you'd want to parse XML as an event stream, and some simple modules that give back event streams. Then the next chapter would be a longer one on SAX - the definitive way to do event streams. Same thing with trees and DOM. It ends with some examples of real-life XML processing, such as consuming and producing RSS feeds. The book also has the best description of Unicode I've ever read, and did it with just a few pages.

What ticked me off about this book were the egregious errors in the sampe code. The very first piece of code they show in chapter 3 is a 100-line XML parser that doesn't need any support modules. The problem is that it doesn't recognize any XML because the regular expressions are wrong, which was pretty confusing for me (I'm relatively new to Perl, so I figured they were just "another way of doing it" that I didn't understand). I downloaded the examples frm the O'Reily website, and they're wrong there too - so it's not just a printing error. Worse, the example XML file I tried to test the parser on was also from the tarfile I downloaded - but it was invalid XML! (example 3.4). So I was trying to learn XML with a sample parser that didn't work, on invalid XML! This is not the quality I am expecting from O'Reilly!

(In fairness, both of these errors were in the online errata, but I'm not sure if they were corrected in the 7/04 reprint)

There are other errors in the code too - so be sure and check back with the errata page if you're going to seriously use the code. If they'd run their sample code before printing, I'd probably give this book a better rating.
5 of 5 people found the following review helpful
4.0 out of 5 stars Good Overview Of XML And Supporting Perl Modules Feb. 14 2004
By Philip R. Heath - Published on Amazon.com
Format:Paperback
I have wanted to learn about XML, but I found the pure XML books dry and too theoretical. However, putting XML in the context of something familiar, i.e. Perl, made it much more accessible. This book gives a nice overview of XML parsing using event based and tree based parsers that are available as Perl modules. The book presents SAX and DOM standards compliant modules as well as modules with more Perlish interfaces, e.g. XML::Grove and XML::Twig. It discusses the pros and cons of event vs. tree parsing of XML as well as a few advanced technologies such as database integration and SOAP. The only knock I have on the book is that the examples are a bit contrived and do not show how to solve meaningful problems.
4 of 5 people found the following review helpful
5.0 out of 5 stars Review of Perl & XML--XML for Perl Programmers Dec 8 2004
By Joshua Wait - Published on Amazon.com
Format:Paperback
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.
2 of 2 people found the following review helpful
5.0 out of 5 stars An Archetypical O'Reilly Book Feb. 17 2007
By H. Hemken - Published on Amazon.com
Format:Paperback|Verified Purchase
This is the sort of book that put O'Reilly on the map. Concise, practical, step-by-step, the kind of book that allows you to get significant amounts of actual work done by the time you finish the third chapter or so. The introduction to XML in chapter two is one of the best I've ever seen, and I've often recommended it for people as an XML Executive Summary, even those who will never write a line of Perl.

Like that late 2006 early 2007 meme says: "It does just what it says on the tin."
Search Customer Reviews
Only search this product's reviews

Look for similar items by category


Feedback