gpt4 book ai didi

xsd - 如何扩展对简单类型元素的限制?

转载 作者:行者123 更新时间:2023-12-04 17:01:19 26 4
gpt4 key购买 nike

有人可以发布一个关于如何在 xml 模式中对 simpletype 元素添加枚举限制的示例吗?

最佳答案

  <xs:simpleType name="myElement">
<xs:union memberTypes="previousRestrictions">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="close" />
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>

关于xsd - 如何扩展对简单类型元素的限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2838758/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com