文档介绍:Python & XML
Christopher A. Jones
Fred L. Drake, Jr.
Publisher: O'Reilly
First Edition January 2002
ISBN: 0-596-00128-2, 384 pages
Python is an ideal language for manipulating XML, and this new volume
gives you a solid foundation for using these two languages together.
plete with practical examples that mon application tasks,
the book starts with the basics then quickly progresses plex topics
Full Description like transforming XML with XSLT and querying XML with XPath. It also
About the Author explores more advanced subjects, such as SOAP and distributed web
services.
Dedication Retrieving Information
Preface Changing Documents
Audience Building a Web Application
Organization Going Beyond SAX and DOM
Conventions Used in This Book 5. Querying XML with XPath
How to Contact Us XPath at a Glance
Acknowledgments Where Is XPath Used?
1. Python and XML Location Paths
Key Advantages of XML XPath Arithmetic Operators
The XML Specifications XPath Functions
The Power of Python and XML XPath Expressions
What Can We Do with It? 6. Transforming XML with XSLT
2. XML Fundamentals The XSLT Specification
XML Structure in a Nutshell XSLT Processors
Document Types and Schemas Defining Stylesheets
Types of Conformance Using XSLT from mand Line
Physical Structures XSLT Elements
Constructing XML Documents A plex Example
Document Type Definitions Embedding XSLT Transformations in
Canonical XML Python
Going Beyond the XML Specification Choosing a Technique
3. The Simple API for XML 7. XML Validation and Dialects
The Birth of SAX Working with DTDs
Understanding SAX Validation at Runtime
Reading an Article The BillSummary Example
Searching File Information Dialects, Frameworks, and Workflow
Building an Image In