In the example, Employee is a simple element and its Is Multiple property is true according to the value of maxOccurs in the XSD which is 10, so it will be transformed to a table, named Employee. And contents of the simple element will be transformed to records of a column with the same name as the Employee table.
The following is a segment of an XSD file:
|
The following is a segment of the corresponding XML instance:
|
The following table, named Employee, is the result which is transformed from the simple element occurred more than once in the XML instance:
In the result, these two columns - NodePrimaryKey and NodeForeignKey are generated by system automatically in the transformation process, and the column Employee is transformed from contents of the simple element.
Note: If the value of the maxOccurs property in the XSD is greater than 1 or unbounded, the simple element will occur more than once in the XML, and the Is Multiple property is true by default, but if you set Is Multiple to false in the transformation process, only the last element of the simple element in the XML will be transformed to a column of a table, which is transformed from the parent element of the simple element.