Typed DataSets

Typed DataSets solve a very specific problem. Before you look at typed DataSets themselves, look at an example of the problem they solve. Examine the schema in Listing 29.3. It is a nested version of the schema that was generated earlier. DataSets are very finicky about the format of the schemas they can read, so the preceding schema has been modified to work with a DataSet.

Listing 29.3. Nested Schema Example
   <?xml version="1.0" standalone="yes"?>
   <xs:schema id="Library"
      xmlns=""
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
     <xs:element name="Library" msdata:IsDataSet="true">
       <xs:complexType>
         <xs:choice maxOccurs="unbounded">

						<xs:element name="Book">
						<xs:complexType>
						<xs:attribute ...

Get Microsoft® Visual C#® .NET 2003 Unleashed 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.