XML 编辑器中关于类型化数据集“.XSC”的警告文件

发布于 2024-08-05 20:17:59 字数 1346 浏览 8 评论 0原文

这一切都与类型化数据集有关...

未声明“urn:schemas-microsoft-com:xml-msdatasource:DataSetUISetting”元素

<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
     This code was generated by a tool.
     Changes to this file may cause incorrect behavior and will be lost if
     the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TableUISettings>
    <TableUISetting Name="TableName">
      <ColumnUISettings>
        <ColumnUISetting Name="TableColumn">
          <ControlSettings>
            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
              <BindableControlInfo Name="LookUpEdit" Type="DevExpress.XtraEditors.LookUpEdit" AssemblyName="DevExpress.XtraEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            </ControlSetting>
          </ControlSettings>
        </ColumnUISetting>
      </ColumnUISettings>
    </TableUISetting>
  </TableUISettings>
</DataSetUISetting>

为什么我会在 Dataset.xsc 文件中收到此警告?如果我没记错的话,.xsc 文件是由 Visual Studio 自动生成的。当我用 Visual Studio 打开它时,我收到上面显示的警告。

声明 XML 模式的正确方法是什么?

既然它是自动生成的,是否应该声明它是正确的? ;)

It all about a typed Dataset...

The 'urn:schemas-microsoft-com:xml-msdatasource:DataSetUISetting' element is not declared

<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
     This code was generated by a tool.
     Changes to this file may cause incorrect behavior and will be lost if
     the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TableUISettings>
    <TableUISetting Name="TableName">
      <ColumnUISettings>
        <ColumnUISetting Name="TableColumn">
          <ControlSettings>
            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
              <BindableControlInfo Name="LookUpEdit" Type="DevExpress.XtraEditors.LookUpEdit" AssemblyName="DevExpress.XtraEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
            </ControlSetting>
          </ControlSettings>
        </ColumnUISetting>
      </ColumnUISettings>
    </TableUISetting>
  </TableUISettings>
</DataSetUISetting>

Why do i get this warning in the Dataset.xsc file? If i am not wrong the .xsc file is auto generated by Visual studio. And when i open it with visual studio, i am getting the warning displayed above.

What is the correct way of declaring XML schemas?

Should it be declared correct since it was auto-generated? ;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

债姬 2024-08-12 20:17:59

正如 John Saunders 所建议的......该警告是 Microsoft 代码中的错误,而不是您的代码

As John Saunders suggested... The warning is a bug in Microsoft's code, not yours

一萌ing 2024-08-12 20:17:59

只需尝试并注意以下代码中的两个之间的区别,第二个是正确的。

 <DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-    
     msdatasource">

vs

 <DataSetUISetting> Version="1.00" xmlns="urn:schemas-microsoft-com:xml-
    msdatasource">

所以只需复制并替换为您拥有的,错误消息就会消失,谢谢大家
这是IDOKO…………

just try and notice the difference between the two of the of the following code, the second one is the right one.

 <DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-    
     msdatasource">

vs

 <DataSetUISetting> Version="1.00" xmlns="urn:schemas-microsoft-com:xml-
    msdatasource">

so just copy and replace it with the one u have, the error message will be gone thank you guys
this is IDOKO.........

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文