tailieunhanh - Python & XML

Dedication Preface Audience Organization Conventions Used in This Book How to Contact Us Acknowledgments 1. Python and XML Key Advantages of XML The XML Specifications The Power of Python and XML What Can We Do with It? 2. XML Fundamentals XML Structure in a Nutshell Document Types and Schemas Types of Conformance Physical Structures Constructing | XML Processing with Python O REILLY Christopher A. Jones Fred L. Drake Jr. Python XML Christopher A. Jones Fred L. Drake Jr. Publisher O Reilly First Edition January 2002 ISBN 0-596-00128-2 384 pages Copyright Full Description About the Author Python is an ideal language for manipulating XML and this new volume gives you a solid foundation for using these two languages together. Complete with practical examples that highlight common application tasks the book starts with the basics then quickly progresses to complex topics like transforming XML with XSLT and querying XML with XPath. It also explores more advanced subjects such as SOAP and distributed web services. Dedication Preface Audience Organization Conventions Used in This Book How to Contact Us Acknowledgments 1. Python and XML Key Advantages of XML The XML Specifications The Power of Python and XML What Can We Do with It 2. XML Fundamentals XML Structure in a Nutshell Document Types and Schemas Types of Conformance Physical Structures Constructing XML Documents Document Type Definitions Canonical XML Going Beyond the XML Specification 3. The Simple API for XML The Birth of SAX Understanding SAX Reading an Article Searching File Information Building an Image Index Converting XML to HTML Advanced Parser Factory Usage Native Parser Interfaces 4. The Document Object Model The DOM Specifications Understanding the DOM Python DOM Offerings Retrieving Information Changing Documents Building a Web Application Going Beyond SAX and DOM 5. Querying XML with XPath XPath at a Glance Where Is XPath Used Location Paths XPath Arithmetic Operators XPath Functions Compiling XPath Expressions 6. Transforming XML with XSLT The XSLT Specification XSLT Processors Defining Stylesheets Using XSLT from the Command Line XSLT Elements A More Complex Example Embedding XSLT .