2
所以我在編寫XML時遇到了這個煩人的錯誤。錯誤描述:XML無效枚舉
cvc-enumeration-valid:值'First'在枚舉'[First,Second]'方面不是方面有效的。它必須是枚舉中的值。
架構
<xs:simpleType name="std-semester">
<xs:restriction base="xs:string">
<xs:enumeration value="First"/>
<xs:enumeration value="Second"/>
</xs:restriction>
</xs:simpleType>
正如你看到枚舉值是第一和第二,但仍然給我錯誤上面提到,即使我把正確的價值「第一」。是什麼賦予了?