May 2002
Beginner to intermediate
560 pages
11h 36m
English
As defined in Inferring Tables, an element with attributes will be inferred as a table. The attributes of that element will then be inferred as columns for the table. The ColumnMapping property of the columns will be set to MappingType.Attribute, to ensure that the column names will be written as attributes if the schema is written back to XML. The values of the attributes are stored in a row in the table. For example, consider the following XML:
<DocumentElement> <Element1 attr1="value1" attr2="value2"/> </DocumentElement>
The inference process will produce a table named “Element1” with two columns, “attr1” and “attr2.” The ColumnMapping property of both columns will be set to MappingType.Attribute.
DataSet: DocumentElement ...