G
Guest
Hello,
I am trying to read in an XML file into a strongly typed data set, and I get
this error:
Column name 'myColumn' is defined for different mapping types.
Here is my code:
myDataSet.ReadXml("myFile.xml", XmlReadMode.InferTypedSchema);
Here is my XML:
<?xml version="1.0" encoding="utf-8" ?>
<myRoot>
<myTable myColumn="test data 1" />
<myTable myColumn="test data 2" />
<myTable myColumn="test data 3" />
</myRoot>
To simplify it, I removed all constraints and relations on myTable in the
XSD designer, so the table is laid out like this:
myColumn {string, allow nulls, null value = empty}
myColumn2 {string, allow nulls, null value = empty}
Any ideas what the problem is?
Thank you,
Eric
I am trying to read in an XML file into a strongly typed data set, and I get
this error:
Column name 'myColumn' is defined for different mapping types.
Here is my code:
myDataSet.ReadXml("myFile.xml", XmlReadMode.InferTypedSchema);
Here is my XML:
<?xml version="1.0" encoding="utf-8" ?>
<myRoot>
<myTable myColumn="test data 1" />
<myTable myColumn="test data 2" />
<myTable myColumn="test data 3" />
</myRoot>
To simplify it, I removed all constraints and relations on myTable in the
XSD designer, so the table is laid out like this:
myColumn {string, allow nulls, null value = empty}
myColumn2 {string, allow nulls, null value = empty}
Any ideas what the problem is?
Thank you,
Eric