很郁闷的,在网上搜不到相关的内容。
很庆幸,Felix Validate给出很直观的错误提示。
试验了好久,终于写对了,记录一下。
1
2
3
4
5
6
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="subtitle" type="xs:string"
minOccurs="0" maxOccurs="unbounded" />
<xs:element name="question" type="question_t"
minOccurs="1" maxOccurs="unbounded" />
</xs:choice>
这么写相当于
(subtitle*|question+)+
姓名:郑玏
性别:男
职业:IT工程师
爱好:KTV、乒乓球、台球、五子棋、围棋、编程
语言:中文、英语、闽南语
Email: