Wrox Press Professional ASP.NET 1.0 XML with C# (2002).pdf

(6626 KB) Pobierz
1015556905.026.png
What You Need to Use This Book
You need to have the following software installed:
* Windows 2000/XP Professional or higher, with IIS installed
* Any version of Visual Studio .NET
* SQL Server 2000, or MSDE (provided with VS.NET)
In addition, the book assumes:
* An intermediate knowledge of the C# language
* A basic understanding of SQL Server and its query syntax
* Some familiarity with XML
Summary of Contents
Introduction
Chapter 1:
Chapter 2:
Chapter 3:
Chapter 4:
Chapter 5:
Chapter 6:
Chapter 7:
Chapter 8:
Chapter 9:
Chapter 10:
Chapter 11:
Index
Introduction to XML Technologies
XmlReader and XmlWriter
XmlDocument
XPath
Transformations
ADO. NET
SQL Server 2000 and SqIXml Managed Classes
E-Business and XML
XQuery
Performance
A Web Services Case Study - An E-Commerce Business Engine
1
9
49
93
177
215
245
267
301
325
367
413
1015556905.027.png 1015556905.028.png 1015556905.029.png
Professional ASP.NET XML with C#
Chris Knowles
Stephen Mohr
J Michael Palermo IV
Pieter Siegers
Darshan Singh
Wrox Press Ltd.
1015556905.001.png
 
Introduction to XML Technologies
In this chapter, we'll look at current and upcoming Extensible Markup Language (XML). We'll begin by
describing what XML is and then talk about where it can help us, some related standards, and focus on
some important design considerations when writing an XML application.
More specifically, this chapter follows this route map:
An Introduction to XML
The Appeal of XML
XML in Vertical Industries
Web Architecture Overview
ASP.NET Web Development
XML 1.0 Syntax
Processing XML
XML Data Binding and XML Serialization
Validating XML
Navigating, Transforming, and Formatting XML
Other Standards in the XML Family
XML Security Standards
XML Messaging
1015556905.002.png 1015556905.003.png 1015556905.004.png 1015556905.005.png 1015556905.006.png 1015556905.007.png 1015556905.008.png 1015556905.009.png 1015556905.010.png 1015556905.011.png 1015556905.012.png 1015556905.013.png 1015556905.014.png 1015556905.015.png 1015556905.016.png 1015556905.017.png 1015556905.018.png 1015556905.019.png 1015556905.020.png 1015556905.021.png 1015556905.022.png 1015556905.023.png 1015556905.024.png 1015556905.025.png
Chapter 1
By the end of this chapter, you'll have a good understanding of the key XML standards, what they do,
where they fit, and how they relate to each other.
An Introduction to XML
The success of XML can be gauged by the fact that since its release in February 1998, there are now
more than 450 other standards based on XML or directly relating to XML in some way. A day seldom
goes by without our encountering XML somewhere, either in a press release, or white paper, or
online/print article. Almost all new (mostly Web) application development jobs post XML experience
as a preferred skill to have. Microsoft's .NET Framework represents a paradigm shift to a platform that
uses and supports XML extensively. Every database and application vendor is adding some kind of
support for XML to their products. The success of XML cannot be overemphasized. No matter which
platform, which language you are working with, knowledge of this technology will serve you well.
What is XML?
In its simplest form, the XML specification is a set of guidelines, defined by the World Wide Web
Consortium (W3C), for describing structured data in plain text. Like HTML, XML is a markup
language based on tags within angled brackets, and is also a subset of SGML (Standard Generalized
Markup Language). As with HTML, the textual nature of XML makes the data highly portable and
broadly deployable. In addition, XML documents can be created and edited in any standard text editor.
But unlike HTML, XML does not have a fixed set of tags; rather it is a meta-language that allows
creation of other markup languages. It is this ability to define new tags that makes XML a truly
extensible language. Another difference from HTML, which focuses on presentation, is XML's focus on
data and its structure. For these reasons, XML is much stricter in its rules of syntax, or "well-
formedness", which require all tags to have a corresponding closing tag, not to overlap, and more. For
instance, in XML you may define a tag, or more strictly the start of an element , like this, <invoice> ,
and it could contain the attribute customer="1234" like so: <invoice customer="1234"> . This
element would have to be completed by a corresponding closing tag </invoice> for the XML to be
well-formed and useable.
The W3C
The W3C is an independent standards body consisting of about 500 members, formed in 1994 under
the direction of Tim Berners-Lee. Its primary purpose is to publish standards for technologies directly
related to the Web, such as HTML and XML.
However, the syntax and usage that the W3C devises do not have governmental backing, and are thus not
officially 'standards' as such, hence the W3C's terminology of 'Recommendation'. However, these
Recommendations are de facto standards in many industries, due to the impartial nature of the W3C itself.
Once a standard has achieved Recommendation status, it will not be modified or added to any further.
Before reaching that status, standards are first classed as Working Draft, which is still subject to change,
and finally a Last Call Working Draft, where no significant changes are envisaged.
10
Zgłoś jeśli naruszono regulamin