Perl and XML - Helion
ISBN: 978-14-493-6682-7
stron: 218, Format: ebook
Data wydania: 2002-04-25
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
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
Osoby które kupowały "Perl and XML", wybierały także:
- Hands-On Gradient Boosting with XGBoost and scikit-learn 142,38 zł, (29,90 zł -79%)
- Perl. Mistrzostwo w programowaniu 44,00 zł, (24,20 zł -45%)
- Wielkie umysły programowania. Jak myślą i pracują twórcy najważniejszych języków 79,00 zł, (47,40 zł -40%)
- Learning Perl. Making Easy Things Easy and Hard Things Possible. 7th Edition 169,00 zł, (118,30 zł -30%)
- 100 sposobów na Perl 39,00 zł, (29,25 zł -25%)
Spis treści
Perl and XML eBook -- spis treści
- Perl and XML
- A Note Regarding Supplemental Files
- Preface
- Assumptions
- How This Book Is Organized
- Resources
- The perl-xml Mailing List
- CPAN
- Font Conventions
- How to Contact Us
- Acknowledgments
- 1. Perl and XML
- 1.1. Why Use Perl with XML?
- 1.2. XML Is Simple with XML::Simple
- 1.3. XML Processors
- 1.4. A Myriad of Modules
- 1.5. Keep in Mind...
- 1.6. XML Gotchas
- 2. An XML Recap
- 2.1. A Brief History of XML
- 2.2. Markup, Elements, and Structure
- 2.3. Namespaces
- 2.4. Spacing
- 2.5. Entities
- 2.6. Unicode, Character Sets, and Encodings
- 2.7. The XML Declaration
- 2.8. Processing Instructions and Other Markup
- 2.9. Free-Form XML and Well-Formed Documents
- 2.10. Declaring Elements and Attributes
- 2.11. Schemas
- 2.11.1. Other Schema Strategies
- 2.12. Transformations
- 3. XML Basics: Reading and Writing
- 3.1. XML Parsers
- 3.1.1. Example (of What Not to Do): A Well-Formedness Checker
- 3.2. XML::Parser
- 3.2.1. Example: Well-Formedness Checker Revisited
- 3.2.2. Parsing Styles
- 3.3. Stream-Based Versus Tree-Based Processing
- 3.4. Putting Parsers to Work
- 3.5. XML::LibXML
- 3.6. XML::XPath
- 3.7. Document Validation
- 3.7.1. DTDs
- 3.7.2. Schemas
- 3.8. XML::Writer
- 3.8.1. Other Methods of Output
- 3.9. Character Sets and Encodings
- 3.9.1. Unicode, Perl, and XML
- 3.9.2. Unicode Encodings
- 3.9.2.1. UTF-8
- 3.9.2.2. UTF-16
- 3.9.2.3. UTF-32
- 3.9.3. Other Encodings
- 3.9.3.1. Core Perl support
- 3.9.4. Encoding Conversion
- 3.9.4.1. iconv and Text::Iconv
- 3.9.4.2. Unicode::String
- 3.9.4.3. Byte order marks
- 3.1. XML Parsers
- 4. Event Streams
- 4.1. Working with Streams
- 4.2. Events and Handlers
- 4.3. The Parser as Commodity
- 4.4. Stream Applications
- 4.5. XML::PYX
- 4.6. XML::Parser
- 5. SAX
- 5.1. SAX Event Handlers
- 5.2. DTD Handlers
- 5.3. External Entity Resolution
- 5.4. Drivers for Non-XML Sources
- 5.5. A Handler Base Class
- 5.6. XML::Handler::YAWriter as a Base Handler Class
- 5.7. XML::SAX: The Second Generation
- 5.7.1. XML::SAX::ParserFactory
- 5.7.2. SAX2 Handler Interface
- 5.7.2.1. Content event handlers
- 5.7.2.2. Entity resolver
- 5.7.2.3. Lexical event handlers
- 5.7.2.4. Error event handlers and catching exceptions
- 5.7.3. SAX2 Parser Interface
- 5.7.4. Example: A Driver
- 5.7.5. Installing Your Own Parser
- 6. Tree Processing
- 6.1. XML Trees
- 6.2. XML::Simple
- 6.3. XML::Parsers Tree Mode
- 6.4. XML::SimpleObject
- 6.5. XML::TreeBuilder
- 6.6. XML::Grove
- 7. DOM
- 7.1. DOM and Perl
- 7.2. DOM Class Interface Reference
- 7.2.1. Document
- 7.2.1.1. Properties
- 7.2.1.2. Methods
- 7.2.2. DocumentFragment
- 7.2.3. DocumentType
- 7.2.3.1. Properties
- 7.2.4. Node
- 7.2.4.1. Properties
- 7.2.4.2. Methods
- 7.2.5. NodeList
- 7.2.5.1. Properties
- 7.2.5.2. Methods
- 7.2.6. NamedNodeMap
- 7.2.6.1. Properties
- 7.2.6.2. Methods
- 7.2.7. CharacterData
- 7.2.7.1. Properties
- 7.2.7.2. Methods
- 7.2.8. Element
- 7.2.8.1. Properties
- 7.2.8.2. Methods
- 7.2.9. Attr
- 7.2.9.1. Properties
- 7.2.10. Text
- 7.2.10.1. Methods
- 7.2.11. CDATASection
- 7.2.12. ProcessingInstruction
- 7.2.12.1. Properties
- 7.2.13. Comment
- 7.2.14. EntityReference
- 7.2.15. Entity
- 7.2.15.1. Properties
- 7.2.16. Notation
- 7.2.16.1. Properties
- 7.2.1. Document
- 7.3. XML::DOM
- 7.4. XML::LibXML
- 8. Beyond Trees: XPath, XSLT, and More
- 8.1. Tree Climbers
- 8.2. XPath
- 8.3. XSLT
- 8.4. Optimized Tree Processing
- 9. RSS, SOAP, and Other XML Applications
- 9.1. XML Modules
- 9.2. XML::RSS
- 9.2.1. Introduction to RSS
- 9.2.2. Using XML::RSS
- 9.2.2.1. Parsing
- 9.2.2.2. Inheriting from XML::Parser
- 9.2.3. The Object Model
- 9.2.4. Input: User or File
- 9.2.5. Off-the-Cuff Output
- 9.3. XML Programming Tools
- 9.3.1. XML::Generator::DBI
- 9.3.2. Further Ruminations on DBI and SAX
- 9.4. SOAP::Lite
- 9.4.1. First Example: A Temperature Converter
- 9.4.2. Second Example: An ISBN Lookup Engine
- 10. Coding Strategies
- 10.1. Perl and XML Namespaces
- 10.2. Subclassing
- 10.2.1. Subclassing Example: XML::ComicsML
- 10.3. Converting XML to HTML with XSLT
- 10.3.1. Example: Apache::DocBook
- 10.4. A Comics Index
- Index
- About the Authors
- Colophon
- Copyright