13.07.2015 Views

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The element describes the body of the root node as anunbounded sequence of and nodes. These first-level nodes<strong>in</strong>dicate the tables <strong>in</strong> the DataSet object. The children of each table denote the schemaof the DataTable object. (See Chapter 3 <strong>for</strong> more <strong>in</strong><strong>for</strong>mation about <strong>XML</strong> schemas.)The schema can be slightly more complex if relations exist between two or more pairsof tables. The msdata namespace conta<strong>in</strong>s ad hoc attributes that are used to annotatethe schema with ADO.<strong>NET</strong>-specific <strong>in</strong><strong>for</strong>mation, mostly about <strong>in</strong>dexes, tablerelationships, and constra<strong>in</strong>ts.In-L<strong>in</strong>e Schemas and ValidationChapter 3 h<strong>in</strong>ted at why the XmlValidat<strong>in</strong>gReader class is paradoxically unable tovalidate the <strong>XML</strong> code that WriteXml generates <strong>for</strong> a DataSet object with an <strong>in</strong>-l<strong>in</strong>eschema, as shown here:.........In the f<strong>in</strong>al <strong>XML</strong> layout, schema <strong>in</strong><strong>for</strong>mation is placed at the same level as the tablenodes, but <strong>in</strong>cludes <strong>in</strong><strong>for</strong>mation about the common root (DataSetName, <strong>in</strong> the330

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!