Kevin,
Thanks, but this is not the problem. I have a schema (.xsd) that has been
turned into a strongly typed data set (.vb file created by the xsd tool). I
am trying to new a variable whose type is this strongly typed dataset so that
I can fill it and eventually generate an xml document from the data. But the
new gets down into the generated .vb code and raises the exception you see in
the subject line. There is no xml document involved at all at this point,
just newing a variable.
I realize that the original release of .Net did not handle this type of
relationship in the schema, but I had been lead to believe the VS 2005 would,
and in fact the xsd tool does not give the errors as the MSDataSetGenerator
tool in VS2003 did, and the generated code compiles fine, but at runtime when
I try to new, it fails.
[quoted text, click to view] "Kevin Yu [MSFT]" wrote:
> Hi,
>
> According to your description, this issue might be referring to the
> following KB articles.
>
>
http://support.microsoft.com/?kbid=325696 >
> When the Visual Studio .NET XML Designer tries to generate the Data view of
> an XML document, the XML Designer applies the Microsoft ADO.NET schema
> inference rules to determine the schema information for the source XML. The
> ADO.NET schema inference rules in the original release version of the
> Microsoft .NET Framework do not permit a single table to be a child table
> in more than one DataRelation object.
>
> So although it might be valid and well-formed in XmlSpy, it is not valid
> according to ADO.NET schema inference rules.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>