XML Schema complexContent 元素

定义和用法

complexContent 元素定义对复杂类型(包含混合内容或仅包含元素)的扩展或限制。

အခွင့်အရေး အချက်

အခြား အဖွဲ့အစည်း တစ်ကြိမ်
အဖွဲ့အစည်း complexType
အကြောင်းအရာ

ဆိုင်းငံ့

အခွင့်အရေး။ အခွင့်အရေး အပေါ် မှာ အချို့သော အခွင့်အရေးများ ရှိသည်။ အချို့သော အခွင့်အရေးများ အပေါ် မှာ မပါဘဲ။

လိုင်းအုပ်

<complexContent
id=ID
mixed=true|false
အခွင့်အရေး
>
(annotation?,(restriction|extension))
</complexContent>

(? အခွင့်အရေး အပိုင်းအခြား အကျယ်အဝန်း အကြား အစုံးအစား အရေးကြီးသည်။

အခွင့်အရေး ဖော်ပြ
အသစ် ဆိုင်းငံ�။ အခွင့်အရေး အသုံးပြုသည့် အခွင့်အရေး အသားကို ကိုယ်တိုင် အသစ်မပါဘဲ အသုံးပြုပါ။
အစုံးအစား ဆိုင်းငံ့။ အခွင့်အရေး အသုံးပြုသည့် အခွင့်အရေး အပိုင်းအခြား အကျယ်အဝန်း အကြား အစုံးအစား အရေးကြီးသည်။ မိမိမှာ အရေးကြီးသည်။
အခွင့်အရေး ဆိုင်းငံ့။ အမိန့်မပါဘဲသော အမည်အသုံးပြုသည့် အကျုံးဖြစ်သော အခြား အခွင့်အရေးများကို အသုံးပြုပါ။

အမှတ်

အမှတ်ပြီး အခြား အကျယ်အဝန်း "fullpersoninfo" ကို အသုံးပြုသော အကျယ်အဝန်း အပေါ် အသုံးပြုသည်။ အကျယ်အဝန်း "fullpersoninfo" က အခြား အကျယ်အဝန်း "personinfo" မှ အစီအစဉ်ပြု၍ အသုံးပြုသည်။

<xs:element name="employee" type="fullpersoninfo"/>
<xs:complexType name="personinfo">
  <xs:sequence>
    <xs:element name="firstname" type="xs:string"/>
    <xs:element name="lastname" type="xs:string"/>
  </xs:sequence>
</xs:complexType>
<xs:complexType name="fullpersoninfo">
  <xs:complexContent>
    <xs:extension base="personinfo">
      <xs:sequence>
        <xs:element name="address" type="xs:string"/>
        <xs:element name="city" type="xs:string"/>
        <xs:element name="country" type="xs:string"/>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

အထူးသတင်း တွင် "employee" အရာ သည် အရာများ အပြတ်အပြတ် ပါဝင်သည်: "firstname"、"lastname"、"address"、"city" နှင့် "country"。