我一直在寻找这个小时,无法找出问题。有人能帮助我吗?我在VB.NET 2010中执行SQLXMLBULKLOAD时遇到了上述错误。我尝试更改我的xml声明,我的模式属性,并且无法通过此错误。这似乎是微不足道的,但我无法弄清楚。请帮助XML架构错误:缺少必需的空白区域
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:mapping-schema">
<xsd:element name="Employees" sql:is-constant="1">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="Employee" sql:relation="the_Employees">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded">
<!--<xsd:element name="id" type="xsd:integer" />-->
<xsd:element name="EmployeeID"sql:field="EmpNo">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="FirstName"sql:field="FirstName">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
我会接受这样的答案!只需要另一套眼睛。谢谢! – 2012-07-27 16:38:12
你在第17行也有一个。之后,你很好走。 – 2012-07-27 16:40:35