May 2002
Beginner to intermediate
560 pages
11h 36m
English
If an element has no child elements or attributes, it will be inferred as a column. The ColumnMapping property of the column will be set to MappingType.Element. The text for child elements is stored in a row in the table. For example, consider the following XML:
<DocumentElement>
<Element1>
<ChildElement1>Text1</ChildElement1>
<ChildElement2>Text2</ChildElement2>
</Element1>
</DocumentElement>
The inference process will produce a table named “Element1” with two columns, “ChildElement1” and “ChildElement2.” The ColumnMapping property of both columns will be set to MappingType.Element.
DataSet: DocumentElement
Table: Element1
| ChildElement1 | ChildElement2 |
|---|---|
| Text1 | Text2 |