This is the eBook version of the printed book. If the print book includes a CD-ROM, this content is not included within the eBook version. XML for ASP.NET Developers first gives a solid foundation in the basics of MSXML including XML Syntax, XML Schemas, Xpath, Xlink, Xpointer, and other concepts necessary to leverage the power of XML. After the building blocks of XML are thoroughly covered, Dan guides readers through manipulating XML documents using the Document Object Model (DOM) and XSL (Extensible Stylesheet Language) both on the client and the server. Detailed examples combined with easy to follow tutorials will have readers transforming XML documents into professional looking applications quickly and easily. Providing a single source for information on a variety of XML related technologies makes XML for ASP.NET Developers a necessary edition to any developer's library and sets it apart from any book available today. Table of Contents 3 XML and ASP.NET Development 8 XML’s Ancestor—SGML 9 Why Do We Need XML? 10 X Is for eXtensible 12 Differences Between XML and HTML 13 MSXML3 Versus the .NET Platform’s System.Xml Assembly 15 How Can XML Be Used by an ASP.NET Developer? 16 Summary 17 XML for ASP.NET Basics 18 What’s in an XML Document? 19 Well-Formed XML Documents 21 Valid XML Documents 25 The XML Declaration 26 XML Elements 29 XML Attributes 30 XML Namespaces 32 Using ASP.NET Objects to Generate XML 49 CDATA Sections 45 Dealing with Whitespace 46 The Relationship of XML to XHTML 47 Summary 55 XPath, XPointer, and XLink 56 Meet a Few of XML’s Relatives 57 XPath—The SQL of XML 58 XPointer—Accessing XML Document Fragments 74 XLink—Resource Relationship Management 81 The XLink Simple Link 87 XLink Extended Links 88 Putting XLink Together 92 Summary 93 Understanding DTDs and XML Schemas 94 Why Use DTDs or Schemas? 95 Do I Really Need To Validate? 96 DTD Basics 98 XML Schemas—Looks a Lot Like XML! 106 The W3C XML Schema 119 Summary 135 Using the XmlTextReader and XmlTextWriter Classes in ASP.NET 137 Introducing the System.Xml Assembly 138 In-Memory Versus Forward-Only Parsing 139 Pull Versus Push Models 141 Using the XmlTextReader Class to Parse XML 142 Building a SAX-Style Push Model Using the XmlTextReader 149 Validating XML Documents Using the XmlTextReader and XmlValidatingReader 163 Passing Authentication Credentials with the XmlTextReader Class 170 Using the XmlTextWriter Class to Create XML Documents 170 Summary 177 Programming the Document Object Model (DOM) with ASP.NET 178 Welcome to the DOM 179 In-Memory Versus Forward–Only Parsing 181 Working with MSXML3 via Interop 182 DOM Classes in the System.Xml Namespace and Assembly 185 The XmlNode Class 186 The XmlDocument Class 192 The XmlNodeList Class 203 The XmlNamedNodeMap Class 204 Selecting Nodes Within the DOM Using Xpath 207 Putting It All Together 208 The XmlNodeReader Class 212 XMLHTTPRequest Object 214 Sample Application—Client/Server-Side Hierarchical XML Menus 222 Chapter 2 Sample Application Revisited 228 Summary 235 Transforming XML with XSLT and ASP.NET 236 What Is XSLT? 237 The Transformation Process 238 Getting Your Feet Wet with XSLT 240 The XSLT Language 245 XSLT Functions 270 .NET Classes Involved in Transforming XML 275 Creating a Reusable XSLT Class 290 Summary 294 Leveraging ADO.NET’s XML Features Using ASP.NET 295 Introducing ADO.NET 296 Comparing Classic ADO with ADO.NET 296 ADO.NET Basics 297 The DataSet Class 310 Working with the DataSet and XmlDataDocument Classes 326 Summary 350 SQL Server 2000, XML, and ASP.NET 351 XML Features in SQL Server 2000 352 Querying SQL Server 2000 Using http 353 Querying SQL Server 2000 Through HTTP Using Templates, XPath, and XDR Schemas 370 Using EXPLICIT Mode Queries 379 Using OPENXML to Manipulate XML SQL SERVER 2000, XML, AND ASP.NET 387 XML Updategrams—Update, Insert, and Delete Database Records with XML Using ASP.NET 391 Using ADO.NET with SQL Server 2000 396 Summary 400 Working with ASP.NET, XML, SOAP, and Web Services 401 Understanding SOAP 402 Understanding Web Services 423 Retrieving Customer Orders Through a Web Service 446 Summary 452 INDEX 453
XML for ASP.NET Developers first gives a solid foundation in the basics of MSXML including XML Syntax, XML Schemas, Xpath, Xlink, Xpointer, and other concepts necessary to leverage the power of XML. After the building blocks of XML are thoroughly covered, Dan guides readers through manipulating XML documents using the Document Object Model (DOM) and XSL (Extensible Stylesheet Language) both on the client and the server. Detailed examples combined with easy to follow tutorials will have readers transforming XML documents into professional looking applications quickly and easily. Providing a single source for information on a variety of XML related technologies makes XML for ASP.NET Developers a necessary edition to any developer's library and sets it apart from any book available today.
XML within ASP.NET gives developers the power to deliver structured data from a wide variety of applications. ASP Developers will need to learn how to use XML within their .NET applications since it is dramatically different than using it within ASP 3.0 (and earlier) applications. Learn how to how to use C# for Internet programming with the hands-on techniques and clear explanations used throughout this practical book.