Skip to end of metadata
Go to start of metadata

CountryOfResidence does not support attributes. Proposed solution from Prasad:

  1. Add the CountryTypeWithAttributes to “address.xsd”.
<xsd:complexType name="CountryTypeWithAttributes">
    <xsd:annotation>
      <xsd:documentation>Complex type using CountryType from address.xsd as its base and allowing attributes.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>  <!—Note: Need to use ComplexContent here since CountryType in address.xsd is already a complex type à
      <xsd:extension base="a:CountryType">
        <xsd:attributeGroup ref="CommonAttributes"/>
      </xsd:extension>
    <xsd:complexContent>
</xsd:complexType>

2. Reference the CountryTypeWithAttributes in PersonInfoType as below.

<xsd:complexType name="PersonalInfoType">
    <xsd:sequence>
       ----other elements are here----
              <xsd:element name="CountryOfResidence" 
               type="a:CountryTypeWithAttributes" minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="CountryOfBirth" type="a:CountryTypeWithAttributes" 
               minOccurs="0" maxOccurs="unbounded"/>
              ----other elements are here----
           </xsd:sequence>
  • No labels