类型base64Binary未声明或不是简单类型

时间:2016-10-03 14:43:17

标签: xml visual-studio xsd xsd-validation xml-validation

我收到此错误,并且不知道如何修复它。

<?xml version="1.0"?>
<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="xmldsig-core-schema.xsd">
        <xs:annotation>
          <xs:documentation>XML Digital Signature schema imported to support 
                            signatures of messages and contents.</xs:documentation>
        </xs:annotation>
      </xs:import>
      ....
      <xs:simpleType name="APP_base64" >
         <xs:annotation>
          <xs:documentation>Representación base64 de la imagen </xs:documentation>
         </xs:annotation>
         <xs:restriction base="base64Binary"/>
      </xs:simpleType>

此行会发出警告<xs:restriction base="base64Binary"/>

1 个答案:

答案 0 :(得分:1)

更改

<xs:restriction base="base64Binary"/>

<xs:restriction base="xs:base64Binary"/>