XML Externalization in .NET

As mentioned before, all data communication within .NET and outside of .NET can be done via XML. By definition, any DataSet can be transported anywhere via its XML externalization. In fact, the DataSet is stored at all times in its XML form.

Figure 46.5 shows the Customers table in the Northwind database. Listing 46.2 is the associated XML Schema Definition for Customers (compliant with the XML Schema definition language standards). This is easily generated in Visual Studio .NET or via the ADO.NET XML Schema generation command (the WriteXMLSchema method of the DataSet).

Listing 46.2. The XML Schema File for the Customers DataSet
 <?xml version="1.0" encoding="utf-8"?> <xs:schema id="CustDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...

Get Microsoft® SQL Server™ 2000 Unleashed, Second 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.