Perl & XML - Erik T Ray

Perl & XML

(Autor)

Buch | Softcover
218 Seiten
2002
O'Reilly Media (Verlag)
978-0-596-00205-3 (ISBN)
35,90 inkl. MwSt
This text is aimed at Perl programmers who need to work with XML documents and data. It offers a comprehensive tour of the landscape of Perl and XML, the myriad of modules, terminology, and techniques. The last two chapters give examples of XML applications, pulling together all the tools.
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.

Erik T. Ray has worked for O'Reilly and Associates as a software developer and XML specialist since 1995. He helped to establish a complete publishing solution using DocBook-XML and Perl to produce books in print, on CD-ROM, and for the new Safari web library of books. As the author of the O'Reilly best seller Learning XML and numerous articles to technical journals, Erik is known for his clear and entertaining writing style. When not hammering out code, he enjoys playing card games, reading about hemorrhagic fevers, practicing Buddhist meditation, and collecting toys. He lives in Saugus, MA with his wife Jeannine and 7 parrots. Jason McIntosh is formerly a member of the O'Reilly & Associates Tools Group, where he performed Perl and XML hacking daily, writing programs to help manage the company's bestiary of books as DocBook XML. He is currently a freelance writer/hacker, and the creator of ComicsML, an XML-based markup language for online comics.

Preface 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 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 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 4. Event Streams Working with Streams Events and Handlers The Parser as Commodity Stream Applications XML::PYX XML::Parser 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 6. Tree Processing XML Trees XML::Simple XML::Parser's Tree Mode XML::SimpleObject XML::TreeBuilder XML::Grove 7. DOM DOM and Perl DOM Class Interface Reference XML::DOM XML::LibXML 8. Beyond Trees: XPath, XSLT, and More Tree Climbers XPath XSLT Optimized Tree Processing 9. RSS, SOAP, and Other XML Applications XML Modules XML::RSS XML Programming Tools SOAP::Lite 10. Coding Strategies Perl and XML Namespaces Subclassing Converting XML to HTML with XSLT A Comics Index Index

Erscheint lt. Verlag 4.6.2002
Reihe/Serie O'Reilly Ser.
Verlagsort Sebastopol
Sprache englisch
Einbandart kartoniert
Themenwelt Informatik Programmiersprachen / -werkzeuge Perl
Informatik Programmiersprachen / -werkzeuge XML
Mathematik / Informatik Informatik Web / Internet
ISBN-10 0-596-00205-X / 059600205X
ISBN-13 978-0-596-00205-3 / 9780596002053
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Keeping the Easy, Hard, and Impossible Within Reach

von Brian D. Foy

Buch | Softcover (2018)
O'Reilly Media (Verlag)
53,85