请找到以下 XML 格式,我正在尝试为其构建架构。
<?xml version="1.0" encoding="UTF-8"?>
<?ORX ORXHEADER="200" VERSION="201" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE" ?>
<ORX>
<NONSIGNONMSGSRQV1>
<NONSONRQ>
<CLIENT>123456765</CLIENT>
<ID>arout_int</ID>
<USERPASS>IM_Developer</USERPASS>
<LANGUAGE>ENG</LANGUAGE>
<APPID>WASSUP</APPID>
<APPOVER>1</APPOVER>
</NONSONRQ>
</NONSIGNONMSGSRQV1>
<NONVERMSGSRQV1>
<NONEMPLOYERHISTTRNRQ>
<COOKIE>1234576540</COOKIE>
<COOKIETAN>12345612340</COOKIETAN>
<BILLINGO1>45674567890</BILLINGO1>
<BILLINGO2>1245673567890</BILLINGO2>
<PURPOSE>
<CODE>PROGRAM</CODE>
</PURPOSE>
<EMPLOYERHISTRQ>
<EMPLOYEEID>123004567</EMPLOYEEID>
</EMPLOYERHISTRQ>
</NONEMPLOYERHISTTRNRQ>
<ANNUALCOMPCOLLECTION>
<ANNUALCOMP>
<YEAR>2002</YEAR>
<BASE>9633.45</BASE>
<OVERTIME>268.29</OVERTIME>
<OTHER>7732.4</OTHER>
<TOTAL>17634.14</TOTAL>
</ANNUALCOMP>
<ANNUALCOMP>
<YEAR>2001</YEAR>
<BASE>12035.72</BASE>
<OVERTIME>390.93</OVERTIME>
<COMMISSION>5840.48</COMMISSION>
<BONUS>3234.28</BONUS>
<OTHER>8974.43</OTHER>
<TOTAL>21010.15</TOTAL>
</ANNUALCOMP>
<ANNUALCOMP>
<YEAR>2000</YEAR>
<BASE>10938.47</BASE>
<OVERTIME>25.89</OVERTIME>
<OTHER>9389.62</OTHER>
<TOTAL>20353.98</TOTAL>
</ANNUALCOMP>
</ANNUALCOMPCOLLECTION>
</NONVERMSGSRQV1>
</ORX>
如果您看到 chich 记录 -> ANNUALCOMPCOLLECTION -> ANNUALCOMP -> COMMISSION & BONUS元素,则始终不重复。
由于这个原因,我的模式验证实例抛出如下警告
错误 BEC2004:元素“ANNUALCOMP”具有无效的子元素“OTHER”。预期的可能元素列表:'OVERTIME,COMMISSION'。
错误 BEC2004:元素“ANNUALCOMP”具有无效的子元素“OTHER”。预期的可能元素列表:'OVERTIME,COMMISSION'。
我必须设置什么样的属性才能正确实现此验证?