You are previewing Applied XML Programming for Microsoft® .NET.
O'Reilly logo
Applied XML Programming for Microsoft® .NET

Book Description

Get the expert advice you need to succeed in building .NET-connected applications with XML!

XML is everywhere in the Microsoft .NET Framework, from Remoting to Web services, and from data access to configuration. Learn about the extensive XML core classes in .NET and find out how to program against its parser in this in-depth guide—written by an expert programming author and consultant on cutting-edge technologies such as Microsoft ASP.NET and Microsoft ADO.NET. You'll find authoritative explanations of technologies such as schemas, transformations, and XPath, plus extensive discussion of data access issues such as synchronization and serialization, the DiffGram format, and the XML extensions in Microsoft SQL Server™ 2000. Along the way, you'll learn exactly how to get the best performance out of XML in the .NET world. You'll also get answers to common questions such as, "When should I use XML Web services instead of Remoting?".

Table of Contents

  1. Copyright
  2. Dedication
  3. Acknowledgments
  4. Introduction
  5. XML Core Classes in the .NET Framework
    1. The .NET XML Parsing Model
      1. XML in the .NET Framework
      2. From MSXML to .NET Framework Classes
      3. The .NET Framework XML API
      4. Conclusion
      5. Further Reading
    2. XML Readers
      1. The Programming Interface of Readers
      2. Parsing with the XmlTextReader Class
      3. Parsing XML Fragments
      4. Writing a Custom XML Reader
      5. Readers and XML Readers
      6. Conclusion
    3. XML Data Validation
      1. The XmlValidatingReader Class
      2. Under the Hood of the Validation Process
      3. Using DTDs
      4. Using XDR Schemas
      5. Using the XML Schema API
      6. Conclusion
      7. Further Reading
    4. XML Writers
      1. The XML Writer Programming Interface
      2. Writing Well-Formed XML Text
      3. Writing a Custom XML Writer
      4. A Read/Write XML Streaming Parser
      5. Conclusion
      6. Further Reading
  6. XML Data Manipulation
    1. The XML .NET Document Object Model
      1. The XML DOM Programming Interface
      2. Working with XML Documents
      3. Creating XML Documents
      4. Extending the XML DOM
      5. Conclusion
      6. Further Reading
    2. XML Query Language and Navigation
      1. What Is XPath, Anyway?
      2. XPath in the XML DOM
      3. The .NET XPath Navigation API
      4. XPath Iterators
      5. Conclusion
      6. Further Reading
    3. XML Data Transformation
      1. What Is XSLT, Anyway?
      2. The .NET Framework XSLT Processor
      3. Applying Transformations
      4. Practical Examples
      5. XSLT Extension Objects
      6. Conclusion
      7. Further Reading
  7. XML and Data Access
    1. XML and Databases
      1. Reading XML Data from Databases
      2. XML Data Readers
      3. A Disconnected XML Data Reader
      4. Writing XML Data to Databases
      5. SQLXML Managed Classes
      6. Conclusion
      7. Further Reading
    2. ADO.NET XML Data Serialization
      1. Serializing DataSet Objects
      2. Serializing Filtered Views
      3. Binary Data Serialization
      4. Loading DataSet Objects from XML
      5. Conclusion
      6. Further Reading
    3. Stateful Data Serialization
      1. Overview of the DiffGram Format
      2. The DiffGram Viewer Application
      3. A Save-and-Resume Application
      4. Conclusion
      5. Further Reading
  8. Applications Interoperability
    1. XML Serialization
      1. The Object Serialization Process
      2. The XML Serializer
      3. Shaping the XML Output
      4. Mapping SQL Server Data to Classes
      5. Inside the XML Serializer
      6. Conclusion
    2. The .NET Remoting System
      1. Interprocess Communications in the .NET Framework
      2. Remotable Objects
      3. Building a Remote Service
      4. Calling a Remote Service
      5. Conclusion
      6. Further Reading
    3. XML Web Services
      1. The .NET Framework Infrastructure for Web Services
      2. Building a .NET Web Service
      3. Building a .NET Framework Web Service Client
      4. .NET Remoting vs. Web Services
      5. Conclusion
      6. Further Reading
    4. XML on the Client
      1. XML Support in Internet Explorer
      2. Embedding .NET Framework Components in Internet Explorer
      3. Putting It All Together
      4. Conclusion
      5. Further Reading
    5. .NET Framework Application Configuration
      1. Configuration Files
      2. Managing Configuration Settings
      3. Creating New Configuration Sections
      4. Customizing the XML Schema for Your Data
      5. Conclusion
      6. Further Reading
  9. Afterword
    1. Native XML in the .NET Framework
    2. Neither XML DOM nor SAX
    3. Query Is Key
    4. The Dream of True Interoperability
  10. About the Author