買這商品的人也買了...
-
$2,190$2,081 -
$680$578 -
$2,640$2,508 -
$990Secure Electronic Commerce, 2/e
-
$970Introduction to Algorithms, 2/e
-
$1,420$1,349 -
$480$408 -
$1,570$1,492 -
$880$695 -
$1,274Computer Architecture: A Quantitative Approach, 3/e(精裝本)
-
$690$587 -
$550$523 -
$1,100$1,045 -
$650$553 -
$780$663 -
$620$490 -
$1,264Game Programming With Python
-
$850$723 -
$480$379 -
$750$638 -
$630$599 -
$3,600$3,420 -
$1,080CMMI: Guidelines for Process Integration and Product Improvement, 2/e
-
$1,110$1,055 -
$880$695
相關主題
商品描述
If you are a Python programmer who wants to incorporate XML into your skill
set, this is the book for you. Python has attracted a wide variety of
developers, who use it either as glue to connect critical programming tasks
together, or as a complete cross-platform application development language. Yet,
because it is object-oriented and has powerful text manipulation abilities,
Python is an ideal language for manipulating XML.
Python &
XML gives you a solid foundation for using these two languages together.
Loaded with practical examples, this new volume highlights common application
tasks, so that you can learn by doing. The book starts with the basics then
quickly progresses to complex topics, like transforming XML with XSLT, querying
XML with XPath, and working with XML dialects and validation. It also explores
the more advanced issues: using Python with SOAP and distributed web services,
and using Python to create scalable streams between distributed applications
(like databases and web servers).
The book provides effective practical
applications, while referencing many of the tools involved in XML processing and
Python, and highlights cross-platform issues along with tasks relevant to
enterprise computing. You will find ample coverage of XML flow analysis and
details on ways in which you can transport XML through your network.
Whether you are using Python as an application language, or as an
administrative or middleware scripting language, you are sure to benefit from
this book. If you want to use Python to manipulate XML, this is your guide.
Table of Contents
Preface
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 Specification3. 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 Interfaces4. 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 DOM5. Querying XML with XPath
XPath at a Glance
Where Is XPath Used?
Location Paths
XPath Arithmetic Operators
XPath Functions
Compiling XPath Expressions6. 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 Transformations in Python
Choosing a Technique7. XML Validation and Dialects
Working with DTDs
Validation at Runtime
The BillSummary Example
Dialects, Frameworks, and Workflow
What Does ebXML Offer?8. Python Internet APIs
Connecting Web Sites
Working with URLs
Opening URLs
Connecting with HTTP
Using the Server Classes9. Python, Web Services, and SOAP
Python Web Services Support
The Emerging SOAP Standard
Python SOAP Options
Example SOAP Server and Client
What About XML-RPC?10. Python and Distributed Systems Design
Sample Application and Flow Analysis
Understanding the Scope
Building the Database
Building the Profiles Access Class
Creating an XML Data Store
The XML Switch
Running the XML Switch
A Web ApplicationA. Installing Python and XML Tools
B. XML Definitions
C. Python SAX API
D. Python DOM API
E. Working with MSXML3.0
F. Additional Python XML Tools
Index
商品描述(中文翻譯)
如果您是一位希望將 XML 納入技能組合的 Python 程式設計師,那麼這本書就是為您而寫的。Python 吸引了各種開發者,他們要麼將其用作連接關鍵程式任務的粘合劑,要麼作為完整的跨平台應用程式開發語言。然而,由於 Python 是物件導向的,並且具有強大的文本處理能力,因此它是操作 XML 的理想語言。
《Python 與 XML》為您提供了使用這兩種語言的堅實基礎。這本新書充滿了實用範例,突顯了常見的應用任務,讓您可以通過實作來學習。書籍從基礎開始,然後迅速進入複雜主題,例如使用 XSLT 轉換 XML、使用 XPath 查詢 XML,以及處理 XML 方言和驗證。它還探討了更高級的問題:使用 Python 與 SOAP 和分散式網路服務,以及使用 Python 在分散式應用程式(如資料庫和網頁伺服器)之間創建可擴展的流。
本書提供了有效的實用應用,同時參考了許多與 XML 處理和 Python 相關的工具,並突顯了跨平台問題以及與企業計算相關的任務。您將發現對 XML 流分析的充分涵蓋,以及如何通過網路傳輸 XML 的詳細資訊。
無論您是將 Python 用作應用程式語言,還是作為管理或中介腳本語言,您都一定會從這本書中受益。如果您想使用 Python 操作 XML,這本書將是您的指南。
目錄
前言
1. Python 與 XML
- XML 的主要優勢
- XML 規範
- Python 與 XML 的力量
- 我們能做什麼?
2. XML 基礎
- XML 結構概述
- 文件類型與架構
- 符合性類型
- 物理結構
- 構建 XML 文件
- 文件類型定義
- 標準 XML
- 超越 XML 規範
3. XML 的簡單 API
- SAX 的誕生
- 理解 SAX
- 讀取文章
- 搜尋文件資訊
- 建立圖像索引
- 將 XML 轉換為 HTML
- 高級解析器工廠用法
- 原生解析器介面
4. 文件物件模型
- DOM 規範
- 理解 DOM
- Python DOM 提供的功能
- 檢索資訊
- 修改文件
- 構建網頁應用程式
- 超越 SAX 和 DOM
5. 使用 XPath 查詢 XML
- XPath 概覽
- XPath 的應用場景
- 位置路徑
- XPath 算術運算符
- XPath 函數
- 編譯 XPath 表達式
6. 使用 XSLT 轉換 XML
- XSLT 規範
- XSLT 處理器
- 定義樣式表
- 從命令行使用 XSLT
- XSLT 元素
- 更複雜的範例
- 在 Python 中嵌入 XSLT 轉換
- 選擇技術
7. XML 驗證與方言
- 使用 DTD
- 運行時驗證
- BillSummary 範例
- 方言、框架與工作流程
- ebXML 提供了什麼?
8. Python 網際網路 API
- 連接網站
- 處理 URL
- 開啟 URL
- 使用 HTTP 連接
- 使用伺服器類別
9. Python、網路服務與 SOAP
- Python 網路服務支援
- 新興的 SOAP 標準
- Python SOAP 選項
- 範例 SOAP 伺服器與客戶端
- XML-RPC 呢?
10. Python 與分散式系統設計
- 範例應用與流分析
- 理解範圍
- 建立資料庫
- 建立 Profiles 存取類別
- 創建 XML 數據存儲
- XML 開關
- 運行 XML 開關
- 一個網頁應用程式
A. 安裝 Python 和 XML 工具
B. XML 定義
C. Python SAX API
D. Python DOM API
E. 使用 MSXML3.0
F. 其他 Python XML 工具
索引