Description
Book SynopsisThis 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.
Table of ContentsPreface 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