Choice of complex types in an XSD

人盡茶涼 提交于 2020-01-04 04:21:47

问题


In an XML schema can a complex type contain a choice of other complex types? I couldn't find any information about that.


回答1:


Yes, see section 3.4.2 of the XML Schema reference; a complexType can indeed contain a choice element.

Similarly, a choice element can contain one or more complexType elements (see section 3.8.2).



来源:https://stackoverflow.com/questions/11252175/choice-of-complex-types-in-an-xsd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!