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" ...