当前位置:网站首页>C# error The 'xmins' attribute is not supported in this context

C# error The 'xmins' attribute is not supported in this context

2022-08-10 13:19:00 HUAWEI CLOUD

System.Xml.Schema.XmlSchemaException: "The 'xmins' attribute is not supported in this context."Exception resolution

Baidu translation: System.Xml.Schema.XmlSchemaException: "The "xmins" attribute is not supported in this context."

This is an exception thrown when reading an xml file using ReadXml of System.Data.DataSet.The analogy finds that generally unsupported errors in this context are generally caused by problems with the content of the xml file.This is because this xml file is copied to test the use of System.Data.DataSet, so there is a problem with its xmins (this XSD namespace), which should be caused by a mismatch with the local environment.So in general, you can consider checking whether the xml file contains errors.

insert image description here
insert image description here

I am also a beginner, and there are still many shortcomings. I sincerely accept the guidance of everyone.

原网站

版权声明
本文为[HUAWEI CLOUD]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101232218187.html