Chapter 17. Reading and Writing XML

After completing this chapter, you will be able to:

  • Retrieve an XML schema from a DataSet.

  • Create a DataSet schema by using ReadXmlSchema.

  • Infer the schema of an XML document.

  • Load XML data by using ReadXml.

  • Create an XML schema by using WriteXmlSchema.

  • Write data to an XML document.

In this chapter, we'll begin our examination of the interaction between Microsoft ADO.NET and Extensible Markup Language (XML) by looking at the structure of an XML schema and the DataSet methods that support reading and writing data from an XML data stream.

Note

The Microsoft .NET Framework provides extensive support for manipulating XML, most of which is outside the scope of this book. In this chapter, we'll examine only the interface ...

Get Microsoft® ADO.NET 2.0 Step by Step, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.