* XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
inference target. For bug #60470. (MS does not support schema
document inference and results in unconsistent dataset structure.)
svn path=/trunk/mcs/; revision=29977
+2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
+ inference target. For bug #60470. (MS does not support schema
+ document inference and results in unconsistent dataset structure.)
+
2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
* DataTableCollection.cs : reset the table's DataSet to null when
// Read one element. It might be DataSet element.\r
XmlElement el = document.DocumentElement;\r
\r
+ if (el.NamespaceURI == XmlSchema.Namespace)\r
+ throw new InvalidOperationException ("DataSet is not designed to handle XML Schema as data content. Please use ReadXmlSchema method instead of InferXmlSchema method.");\r
+\r
if (IsDocumentElementTable ())\r
InferTopLevelTable (el);\r
else {\r