[ Team Lib ] .NET & XML Provides an In-Depth, Concentrated Tutorial for Intermediate to Advanced-Level Developers. Additiona
Total Page:16
File Type:pdf, Size:1020Kb
[ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic .NET and XML By Niel M. Bornstein Publisher: O'Reilly Pub Date: November 2003 ISBN: 0-596-00397-8 Pages: 464 .NET & XML provides an in-depth, concentrated tutorial for intermediate to advanced-level developers. Additionally, it includes a complete reference to the XML-related namespaces within the .NET Framework. XML is an extremely flexible technology, and Microsoft has implemented most of the tools programmers need to use it very extensively. .NET & XML aims to help you understand the intersection between the two technologies for maximum effectiveness. [ Team LiB ] [ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic .NET and XML By Niel M. Bornstein Publisher: O'Reilly Pub Date: November 2003 ISBN: 0-596-00397-8 Pages: 464 Copyright Preface Organization of This Book Who Should Read This Book? About XML and Web Services About the Sample Code Why C#? Style Conventions How to Contact Us Acknowledgments Part I: Processing XML with .NET Chapter 1. Introduction to .NET and XML Section 1.1. The .NET Framework Section 1.2. The XML Family of Standards Section 1.3. Introduction to XML in .NET Section 1.4. Key Concepts Section 1.5. Moving On Chapter 2. Reading XML Section 2.1. Reading Data Section 2.2. XmlReader Section 2.3. Moving On Chapter 3. Writing XML Section 3.1. Writing Data Section 3.2. XmlWriter and Its Subclasses Section 3.3. Moving On Chapter 4. Reading and Writing Non-XML Formats Section 4.1. Reading Non-XML Documents with XmlReader Section 4.2. Writing an XmlPyxWriter Section 4.3. Moving On Chapter 5. Manipulating XML with DOM Section 5.1. What Is the DOM? Section 5.2. The .NET DOM Implementation Section 5.3. Moving On Chapter 6. Navigating XML with XPath Section 6.1. What Is XPath? Section 6.2. Using XPath Section 6.3. Moving On Chapter 7. Transforming XML with XSLT Section 7.1. The Standards Section 7.2. Introducing XSLT Section 7.3. Using XSLT Section 7.4. Moving On Chapter 8. Constraining XML with Schemas Section 8.1. Introducing W3C XML Schema Section 8.2. Using the XSD Tool Section 8.3. Working with Schemas Section 8.4. Moving On Chapter 9. SOAP and XML Serialization Section 9.1. Defining Serialization Section 9.2. Runtime Serialization Section 9.3. XML Serialization Section 9.4. SOAP Serialization Section 9.5. Moving On Chapter 10. XML and Web Services Section 10.1. Defining Web Services Section 10.2. Using Web Services Section 10.3. Moving On Chapter 11. XML and Databases Section 11.1. Introduction to ADO.NET Section 11.2. Manipulating Data Offline Section 11.3. Reading XML from a Database Section 11.4. Hierarchical XML Part II: .NET XML Namespace Reference Chapter 12. How to Use These Quick Reference Chapters Section 12.1. Finding a Quick-Reference Entry Section 12.2. Reading a Quick-Reference Entry Chapter 13. The Microsoft.XmlDiffPatch Namespace Section 13.1. Using the XmlDiffPatch Namespace Section 13.2. Using the XmlDiff and XmlPatch Executables Section 13.3. Microsoft.XmlDiffPatch Namespace Reference Chapter 14. The Microsoft.XsdInference Namespace Section 14.1. Using the XsdInference Namespace Section 14.2. Using the Infer Executable Section 14.3. Microsoft.XsdInference Namespace Reference Chapter 15. The System.Configuration Namespace Section 15.1. The Configuration Files Section 15.2. Adding Your Own Configuration Settings Section 15.3. System.Configuration Namespace Reference Chapter 16. The System.Xml Namespace EntityHandling Formatting IHasXmlNode IXmlLineInfo NameTable ReadState ValidationType WhitespaceHandling WriteState XmlAttribute XmlAttributeCollection XmlCDataSection XmlCharacterData XmlComment XmlConvert XmlDataDocument XmlDeclaration XmlDocument XmlDocumentFragment XmlDocumentType XmlElement XmlEntity XmlEntityReference XmlException XmlImplementation XmlLinkedNode XmlNamedNodeMap XmlNamespaceManager XmlNameTable XmlNode XmlNodeChangedAction XmlNodeChangedEventArgs XmlNodeChangedEventHandler XmlNodeList XmlNodeOrder XmlNodeReader XmlNodeType XmlNotation XmlParserContext XmlProcessingInstruction XmlQualifiedName XmlReader XmlResolver XmlSecureResolver XmlSignificantWhitespace XmlSpace XmlText XmlTextReader XmlTextWriter XmlTokenizedType XmlUrlResolver XmlValidatingReader XmlWhitespace XmlWriter Chapter 17. The System.Xml.Schema Namespace ValidationEventArgs ValidationEventHandler XmlSchema XmlSchemaAll XmlSchemaAnnotated XmlSchemaAnnotation XmlSchemaAny XmlSchemaAnyAttribute XmlSchemaAppInfo XmlSchemaAttribute XmlSchemaAttributeGroup XmlSchemaAttributeGroupRef XmlSchemaChoice XmlSchemaCollection XmlSchemaCollectionEnumerator XmlSchemaComplexContent XmlSchemaComplexContentExtension XmlSchemaComplexContentRestriction XmlSchemaComplexType XmlSchemaContent XmlSchemaContentModel XmlSchemaContentProcessing XmlSchemaContentType XmlSchemaDatatype XmlSchemaDerivationMethod XmlSchemaDocumentation XmlSchemaElement XmlSchemaEnumerationFacet XmlSchemaException XmlSchemaExternal XmlSchemaFacet XmlSchemaForm XmlSchemaFractionDigitsFacet XmlSchemaGroup XmlSchemaGroupBase XmlSchemaGroupRef XmlSchemaIdentityConstraint XmlSchemaImport XmlSchemaInclude XmlSchemaKey XmlSchemaKeyref XmlSchemaLengthFacet XmlSchemaMaxExclusiveFacet XmlSchemaMaxInclusiveFacet XmlSchemaMaxLengthFacet XmlSchemaMinExclusiveFacet XmlSchemaMinInclusiveFacet XmlSchemaMinLengthFacet XmlSchemaNotation XmlSchemaNumericFacet XmlSchemaObject XmlSchemaObjectCollection XmlSchemaObjectEnumerator XmlSchemaObjectTable XmlSchemaParticle XmlSchemaPatternFacet XmlSchemaRedefine XmlSchemaSequence XmlSchemaSimpleContent XmlSchemaSimpleContentExtension XmlSchemaSimpleContentRestriction XmlSchemaSimpleType XmlSchemaSimpleTypeContent XmlSchemaSimpleTypeList XmlSchemaSimpleTypeRestriction XmlSchemaSimpleTypeUnion XmlSchemaTotalDigitsFacet XmlSchemaType XmlSchemaUnique XmlSchemaUse XmlSchemaWhiteSpaceFacet XmlSchemaXPath XmlSeverityType Chapter 18. The System.Xml.Serialization Namespace SoapAttributeAttribute SoapAttributeOverrides SoapAttributes SoapElementAttribute SoapEnumAttribute SoapIgnoreAttribute SoapIncludeAttribute SoapReflectionImporter SoapTypeAttribute UnreferencedObjectEventArgs UnreferencedObjectEventHandler XmlAnyAttributeAttribute XmlAnyElementAttribute XmlAnyElementAttributes XmlArrayAttribute XmlArrayItemAttribute XmlArrayItemAttributes XmlAttributeAttribute XmlAttributeEventArgs XmlAttributeEventHandler XmlAttributeOverrides XmlAttributes XmlChoiceIdentifierAttribute XmlElementAttribute XmlElementAttributes XmlElementEventArgs XmlElementEventHandler XmlEnumAttribute XmlIgnoreAttribute XmlIncludeAttribute XmlNamespaceDeclarationsAttribute XmlNodeEventArgs XmlNodeEventHandler XmlRootAttribute XmlSerializer XmlSerializerNamespaces XmlTextAttribute XmlTypeAttribute XmlTypeMapping Chapter 19. The System.Xml.XPath Namespace IXPathNavigable XmlCaseOrder XmlDataType XmlSortOrder XPathDocument XPathException XPathExpression XPathNamespaceScope XPathNavigator XPathNodeIterator XPathNodeType XPathResultType Chapter 20. The System.Xml.Xsl Namespace IXsltContextFunction IXsltContextVariable XsltArgumentList XsltCompileException XsltContext XsltException XslTransform Chapter 21. Type, Method, Property, and Field Index Colophon Index [ Team LiB ] [ Team LiB ] Copyright Copyright © 2004 O'Reilly & Associates, Inc. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly & Associates books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 [email protected] . Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The association between the image of a Canada goose and the topic of .NET and XML is a trademark of O'Reilly & Associates, Inc. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. [ Team LiB ] [ Team LiB ] Preface XML offers a flexible and standardized way to share data between programs running on disparate platforms. The .NET Framework is an exciting new platform for developing software that natively shares its data and processing across networks. It seems natural enough that XML and .NET fit together; indeed, Microsoft has provided a full suite of XML tools in the .NET Framework, and .NET relies heavily on XML for its vaunted remoting and web services capabilities. This book is about .NET and XML. Now, there are plenty of books out there about .NET, and certainly there are quite a number about XML. However, as I set out to learn about using XML in .NET, I discovered a dearth of books about .NET and XML, especially ones that go into detail about the things that Visual Studio .NET can do behind the wizards. This is a serious gap. The .NET framework provides deep support for the XML family of standards; not only does it use XML internally, but it also maks its XML tools available to you as a developer. There is a strong need