Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 552 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
552
Dung lượng
14,12 MB
Nội dung
this print for content only—size & color not accurate spine = 1.0423" 552 page count
Books for professionals By professionals
®
Beginning XMLwithC#2008:
From Noviceto Professional
Dear Reader,
Modern software systems are becoming more and more distributed and involve
heterogeneous platforms. As an industry standard, XML plays a vital role in
such systems, because it can represent your data in a platform-neutral way. The
data can then be exchanged across application layers and transformed with the
help of XSLT to suit your requirements. It’s no wonder that Microsoft’s .NET
Framework 3.5 provides strong support for XML and its allied technologies. If
you aim to master the array of XML features provided by the .NET Framework,
this is the book for you.
This book details all the major XML features in .NET. Being a developer and
trainer, I have selected topics that suit the requirements of real-world projects:
• Reading and writing XML documents with the Document Object Model
• Reading and writing XML documents with XmlReader and XmlWriter
• Dealing withXML data using the new LINQ toXML classes
• ADO.NET integration and the XML features of SQL Server
• XML serialization
• Web services and Windows Communication Foundation (WCF) services
Understanding these topics will give you a solid foundation for harnessing
the power of XML in your .NET applications. Moreover, you will have the skills
to select and apply the appropriate XML technologies in your projects and to
develop cross-platform, distributed, XML-driven applications more effectively
than ever before.
Bipin Joshi
BinaryIntellect
®
Consulting
Microsoft MVP
|
Member of ASPInsiders
Author of
Developer’s Guide to
ASP.NET 3.5
Webmaster of
www.dotnetbips.com
www.binaryintellect.net
www.bipinjoshi.com/.net/.org
US $44.99
Shelve in
.NET
User level:
Beginner–Intermediate
Joshi
XML withC# 2008
The eXperT’s Voice
®
in .neT
Beginning
XML with
C# 2008
From Noviceto Professional
cyan
MaGenTa
yelloW
Black
panTone 123 c
Bipin Joshi
Companion
eBook Available
THE APRESS ROADMAP
Beginning XML
with C# 2008
Beginning C# 2008
Illustrated C# 2008
Pro LINQ
Pro WPF in C# 2008
Pro C# 2008 and the
.NET 3.5 Platform,
Fourth Edition
Beginning C# 2008
Databases
www.apress.com
SOURCE CODE ONLINE
Companion eBook
See last page for details
on $10 eBook version
Master the .NET Framework’s XML features
to build powerful, data-driven applications
ISBN 978-1-4302-0997-3
9 781430 209973
5 4 4 9 9
Beginning
[...]... and Outer XML 105 Getting an XmlReader from XPathNavigator 107 Getting an XmlWriter from XPathNavigator 110 Editing XML Documents with the XPathNavigator Class 112 Summary 118 ■CHAPTER 5 Validating XML Documents 119 Providing Structure for XML Documents... is worthwhile to peek into this new framework, and Chapter 12 does exactly that Another exciting addition to the NET Framework is Language INtegrated Query (LINQ) LINQ toXML is an especially cool new addition for XML developers Chapter 13 is dedicated to this new programming model Here, you will learn about core LINQ toXML features including parsing and loading XML trees the LINQ toXML way and validating... NET Framework • Use of XML in the NET Framework • Introduction to Visual Studio If you find these concepts highly familiar, you may want to skip ahead to Chapter 2 What Is XML? XML stands for Extensible Markup Language and is a markup language used to describe data It offers a standardized way to represent textual data Often the XML data is also referred to as an XML document The XML data doesn’t perform... discussion, when I talk about validating XML documents, I will be referring toXML schemas Parsing XML Documents XML data by itself cannot do anything; you need to process that data to do something meaningful As I have said, the software that processes XML documents is called a parser (or XML processor) XML parsers allow you read, write, and manipulate XML documents XML parsers can be classified in two... contains classes related to the LINQ toXML features Using these classes you can manipulate XML documents and fragments efficiently and easily Some of the important tasks that you can accomplish include loading XMLfrom files or streams, creating XML trees via code, querying XML trees using LINQ operators, modifying XML trees, validating XML trees against schema, and transforming XML trees Some of the... XML representation of the preceding markup would be as follows: DTDs and XML Schemas Creating well-formed XML documents is one part of the story The other part is whether these documents adhere to an agreed structure, or schema That is where Document Type Definitions (DTDs) and XML schemas come into the picture DTDs and XML schemas allow you to convey the structure of your XML. .. 2008, and the Sandcastle help file generation tool Structure of This Book The book is divided into 13 chapters and three appendixes Chapters 1 to 4 talk about navigating, reading, and writing XML documents by using classes from the System .Xml namespace In these chapters, you will learn to use classes such as XmlDocument, XmlReader, XmlWriter, and XPathNavigator xxi Joshi_09973FRONT.fm Page xxii Tuesday,... business -to- business (B2B) applications Let’s say that application A captures order data from the end user and represents it in some XML format This data then needs to be sent to application B that belongs to some other business It is quite possible that the XML format as generated by application A is different from that required by application B In such cases, you need to convert the source XML data to. .. such as XmlDocument represent the NET Framework’s DOM-based parser, whereas classes such as XmlTextReader and XmlTextWriter allow you to quickly read and write XML documents This namespace also contains classes that represent various parts of an XML document; these classes include XmlNode, XmlElement, XmlAttribute, and XmlText We will be using many of these classes throughout this book System .Xml. Schema... occurs is essential To that end, Chapters 7 to 9 cover topics such as ADO.NET integration with XML, XML serialization, and XML web services Microsoft has not limited the use of XML only to areas such as ADO.NET and web services SQL Server incorporates many XML- related features These features are discussed in Chapter 10 Though this topic isn’t strictly one of the XML features of NET, many developers will .
Beginning XML
with C# 2008
From Novice to Professional
■■■
Bipin Joshi
Joshi_09973FRONT.fm Page i Tuesday, June 17, 2008 2:50 PM
Beginning XML with C# 2008: From.
Beginner–Intermediate
Joshi
XML with C# 2008
The eXperT’s Voice
®
in .neT
Beginning
XML with
C# 2008
From Novice to Professional
cyan
MaGenTa
yelloW
Black
panTone 123