要使用XML Source将XML文件加载到SSIS中,我使用Visual Studio生成XSD。不管XML文档多么琐碎,我都会收到以下错误消息: 管道组件从方法调用返回了HRESULT错误代码0xC02090CF ...设置映射时出错。未声明“ http://schemas.openxmlformats.org/markup-compatibility/2006:Ignorable”属性。
我读过的所有内容都无法解决这种情况,因此尝试添加/删除元素,尤其是。易燃品。 attributeFormDefault已被生成为不合格。关于如何消除错误的任何建议(简单来说,请问,因为我仍在学习XML结构)?预先谢谢你。
----- XML(已删除内容)
<worksheet
xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3"
xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"
xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{16A154C6-3418-4EF7-8B93-E3744BCA1F5F}"><dimension ref="A3:C3"/><sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="C21" sqref="C21"/></sheetView></sheetViews><sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35"/>
<sheetData>
<row r="3" spans="1:3" x14ac:dyDescent="0.35"><c r="A3"><v>23694</v></c><c r="B3" s="1"><v>42826</v></c><c r="C3"><v>8.8</v></c></row>
</sheetData>
</worksheet>
----- XSD(已删除内容)
<xs:schema xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.openxmlformats.org/markup-compatibility/2006" />
<xs:import namespace="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" />
<xs:import namespace="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" />
<xs:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
<xs:element name="worksheet">
<xs:complexType>
<xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sheetData">
<xs:complexType>
<xs:sequence>
<xs:element name="row">
<xs:complexType>
</xs:sequence>
<xs:attribute ref="x14ac:dyDescent" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:attribute ref="mc:Ignorable" use="required" />
<xs:attribute ref="xr:uid" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>