我无法解决有关<xs:element ref="ds:Signature"/>
的此错误。 我需要一些帮助。XSD签名问题
版权(C)Microsoft Corporation。版权所有。 Schema 验证警告:'http://www.w3.org/2000/09/xmldsig#:Signature' 未被声明。第162行,第8位。
警告:架构无法验证。班级生成可能失败或 可能会产生不正确的结果。
警告:无法生成类,因为找不到具有 复杂类型的顶级元素。
XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
<xs:complexType name="SobreCheques">
<xs:annotation>
<xs:documentation>Definition of the ...</xs:documentation>
</xs:annotation>
<xs:sequence>
...
<xs:element ref="ds:Signature"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
模式http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd可从机器访问? – ulab
@ulab是的。 –
好的。如果您在本地保存架构并将其引用到'schemalocation'中,那么它仍然无法解析名称空间。 – ulab