我無法解決有關<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