G
Guest
I have an xml file where the top level units have the form
<a>
<a1>1</a1>
<a2>1</a2>
<a2>2</a2>
</a>
where there can be any number of <a2> elements (at least one) in each <a>
element. This should generate a two table data set with an "a" table and an
"a2" table. If I declare a2 to have minoccurs 1 and maxoccurs unbound and
type xs:double that is exactly what I get. However, ... I can create a user
type posDouble and declare it to have a base of double, a minexclusive of 0.
If I now declare a2 to be type posDouble, my dataset loses the a2 table.
All I can see is a single a2 column with one value in it! This shouldn't
happen! Help!
I've tried endless permutations without success. For, example if I use the
"create schema" functionality of the xml file, I get
<xs:element name="a2" minoccurs ="0" maxoccurs ="unbounded" nillable ="true">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="a2_Text" msdata:Ordinal="0">
<xs:extension base="xs:string"></xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Althought the help files say that simpleContent should take xs:restriction
in place of xs:extension, putting it in creates errors when "Generate
Dataset" is checked.
This should be trivial. What's the answer?
<a>
<a1>1</a1>
<a2>1</a2>
<a2>2</a2>
</a>
where there can be any number of <a2> elements (at least one) in each <a>
element. This should generate a two table data set with an "a" table and an
"a2" table. If I declare a2 to have minoccurs 1 and maxoccurs unbound and
type xs:double that is exactly what I get. However, ... I can create a user
type posDouble and declare it to have a base of double, a minexclusive of 0.
If I now declare a2 to be type posDouble, my dataset loses the a2 table.
All I can see is a single a2 column with one value in it! This shouldn't
happen! Help!
I've tried endless permutations without success. For, example if I use the
"create schema" functionality of the xml file, I get
<xs:element name="a2" minoccurs ="0" maxoccurs ="unbounded" nillable ="true">
<xs:complexType>
<xs:simpleContent msdata:ColumnName="a2_Text" msdata:Ordinal="0">
<xs:extension base="xs:string"></xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Althought the help files say that simpleContent should take xs:restriction
in place of xs:extension, putting it in creates errors when "Generate
Dataset" is checked.
This should be trivial. What's the answer?