.NET and XML
暫譯: .NET 與 XML

Niel M. Bornstein

  • 出版商: O'Reilly
  • 售價: $1,590
  • 貴賓價: 9.5$1,511
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 0596003978
  • ISBN-13: 9780596003975
  • 相關分類: .NETXML
  • 已過版

買這商品的人也買了...

商品描述

Summary

If you're seeking ways to build network-based applications or XML-based web services, Microsoft provides most of the tools you'll need. XML is integrated into the .NET Framework and Visual Studio .NET, but if you want to get a grasp on how .NET and XML actually work together, that's a different story. With .NET & XML, you can get under the hood to see how the .NET Framework implements XML, giving you the skills to write understandable XML-based code that interoperates with code written with other tools, and even other languages.

.NET & XML starts by introducing XML and the .NET Framework, and then teaches you how to read and write XML before moving on to complex methods for manipulating, navigating, transforming, and constraining it. To demonstrate the power of XML in .NET, author Niel Bornstein builds a simple hardware store inventory system throughout the book. As you move from chapter to chapter, you'll absorb increasingly complex information until you have enough knowledge to successfully program your own XML-based applications. This tutorial also contains a quick reference to the API, plus appendices present additional .NET assemblies that you can use to work with XML, and how to work with the .NET XML configuration file format.

One study puts the potential market for new software based on XML at or near $100 billion over the next five years. The .NET Framework gives you a way to become a part of it. But to use XML and .NET effectively, you need to understand how these two technologies work together. This book gives you the insight to take full advantage of the power the two provide.

Table of Contents

Preface

Part I. Processing XML with .NET

1. Introduction to .NET and XML
     The .NET Framework
     The XML Family of Standards
     Introduction to XML in .NET
     Key Concepts

2. Reading XML
     Reading Data
     XmlReader

3. Writing XML
     Writing Data
     XmlWriter and Its Subclasses

4. Reading and Writing Non-XML Formats
     Reading Non-XML Documents with XmlReader
     Writing an XmlPyxWriter

5. Manipulating XML with DOM
     What Is the DOM?
     The .NET DOM Implementation

6. Navigating XML with XPath
     What Is XPath?
     Using XPath

7. Transforming XML with XSLT
     The Standards
     Introducing XSLT
     Using XSLT

8. Constraining XML with Schemas
     Introducing W3C XML Schema
     Using the XSD Tool
     Working with Schemas

9. SOAP and XML Serialization
     Defining Serialization
     Runtime Serialization
     XML Serialization
     SOAP Serialization

10. XML and Web Services
     Defining Web Services
     Using Web Services

11. XML and Databases
     Introduction to ADO.NET
     Manipulating Data Offline
     Reading XML from a Database
     Hierarchical XML

Part II. .NET XML Namespace Reference

12. How to Use These Quick Reference Chapters
     Finding a Quick-Reference Entry
     Reading a Quick-Reference Entry

13. The Microsoft.XmlDiffPatch Namespace
     Using the XmlDiffPatch Namespace
     Using the XmlDiff and XmlPatch Executables
     Microsoft.XmlDiffPatch Namespace Reference

14. The Microsoft.XsdInference Namespace
     Using the XsdInference Namespace
     Using the Infer Executable
     Microsoft.XsdInference Namespace Reference

15. The System.Configuration Namespace
     The Configuration Files
     Adding Your Own Configuration Settings
     System.Configuration Namespace Reference

16. The System.Xml Namespace

17. The System.Xml.Schema Namespace

18. The System.Xml.Serialization Namespace

19. The System.Xml.XPath Namespace

20. The System.Xml.Xsl Namespace

Type, Method, Property, and Field Index

Index

商品描述(中文翻譯)

**摘要**

如果您正在尋找構建基於網路的應用程式或基於 XML 的網路服務的方法,微軟提供了您所需的大部分工具。XML 已整合進 .NET Framework 和 Visual Studio .NET,但如果您想了解 .NET 和 XML 實際上是如何協同工作的,那就是另一回事了。透過 .NET 和 XML,您可以深入了解 .NET Framework 如何實現 XML,讓您具備撰寫可理解的基於 XML 的程式碼的技能,這些程式碼可以與使用其他工具甚至其他語言撰寫的程式碼互操作。

.NET 和 XML 首先介紹 XML 和 .NET Framework,然後教您如何讀取和寫入 XML,接著再進入更複雜的操作方法,包括操作、導航、轉換和約束 XML。為了展示 XML 在 .NET 中的強大功能,作者 Niel Bornstein 在整本書中構建了一個簡單的硬體商店庫存系統。隨著您從一章移動到另一章,您將吸收越來越複雜的信息,直到您擁有足夠的知識來成功編寫自己的基於 XML 的應用程式。本教程還包含 API 的快速參考,附錄中提供了額外的 .NET 組件,您可以用來處理 XML,以及如何使用 .NET XML 配置文件格式。

一項研究預測,未來五年基於 XML 的新軟體潛在市場將達到或接近 1000 億美元。 .NET Framework 為您提供了一個成為這一市場一部分的途徑。但要有效使用 XML 和 .NET,您需要了解這兩種技術如何協同工作。本書將為您提供深入的見解,以充分利用這兩者所提供的強大功能。

**目錄**

前言

**第一部分:使用 .NET 處理 XML**

1. .NET 和 XML 簡介
- .NET Framework
- XML 標準家族
- .NET 中的 XML 簡介
- 關鍵概念

2. 讀取 XML
- 讀取數據
- XmlReader

3. 寫入 XML
- 寫入數據
- XmlWriter 及其子類別

4. 讀取和寫入非 XML 格式
- 使用 XmlReader 讀取非 XML 文檔
- 寫入 XmlPyxWriter

5. 使用 DOM 操作 XML
- 什麼是 DOM?
- .NET DOM 實現

6. 使用 XPath 導航 XML
- 什麼是 XPath?
- 使用 XPath

7. 使用 XSLT 轉換 XML
- 標準
- 介紹 XSLT
- 使用 XSLT

8. 使用 Schema 約束 XML
- 介紹 W3C XML Schema
- 使用 XSD 工具
- 使用 Schema

9. SOAP 和 XML 序列化
- 定義序列化
- 運行時序列化
- XML 序列化
- SOAP 序列化

10. XML 和網路服務
- 定義網路服務
- 使用網路服務

11. XML 和資料庫
- ADO.NET 簡介
- 離線操作數據
- 從資料庫讀取 XML
- 層次 XML

**第二部分:.NET XML 命名空間參考**

12. 如何使用這些快速參考章節
- 尋找快速參考條目
- 閱讀快速參考條目

13. Microsoft.XmlDiffPatch 命名空間
- 使用 XmlDiffPatch 命名空間
- 使用 XmlDiff 和 XmlPatch 可執行文件
- Microsoft.XmlDiffPatch 命名空間參考

14. Microsoft.XsdInference 命名空間
- 使用 XsdInference 命名空間
- 使用 Infer 可執行文件
- Microsoft.XsdInference 命名空間參考

15. System.Configuration 命名空間
- 配置文件
- 添加自己的配置設置
- System.Configuration 命名空間參考

16. System.Xml 命名空間

17. System.Xml.Schema 命名空間

18. System.Xml.Serialization 命名空間

19. System.Xml.XPath 命名空間

20. System.Xml.Xsl 命名空間

類型、方法、屬性和字段索引

索引