XML షేమా complexContent మెమ్బర్

నిర్వచనం మరియు వినియోగం

complexContent మెమ్బర్ సమాచారం క్లిష్ట రకం (మిశ్రమం లేదా మెమ్బర్స్ మాత్రమే) యొక్క విస్తరణ లేదా పరిమితిని నిర్వచిస్తుంది.

మెమ్బర్ సమాచారం

కనిపించగల సంఖ్య ఒకసారి
మాత్రమే complexType
సమాచారం

ఎంపికాబల్యం. annotation

అప్రమేయం. ఒకటి కాని అప్రమేయంగా క్రింది ఎల్లాంటి మెమ్బర్స్ లో ఒకటి కాగలదు: restriction (complexContent) లేదా extension (complexContent).

వినియోగం

<complexContent
id=ID
mixed=true|false
ఏదైనా అంశాలు
>
(annotation?,(restriction|extension))
</complexContent>

(? సంకేతం మెమ్బర్స్ complexContent లో ఒకసారి లేదా ఎక్కువ సార్లు కనిపించవచ్చు.)

అంశాలు వివరణ
id ఎంపికాబల్యం. ఈ మెమ్బర్స్ యొక్క ప్రత్యేకమైన ID నిర్ణయించుట.
మిశ్రమం ఎంపికాబల్యం. అక్షర సమాచారం ఈ complexType కింది పింగడ మెమ్బర్స్ మధ్య కనిపించాలా అనేది నిర్ణయించుట. అప్రమేయంగా false ఉంటుంది.
ఏదైనా అంశాలు ఎంపికాబల్యం. నాణ్యతలేని శేఖరణ పేరు కలిగిన ఏ ఇతర అంశాలను నిర్ణయించుట.

ప్రతిమాత్రం

ఈ ఉదాహరణలో ఒక క్లిష్ట రకం "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".