Schema Central > Genericode 1.0 > genericode.xsd > gc:CodeList
Advanced search
Need XML Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

gc:CodeList

Top-level (root) element for a genericode code list definition.
A code list definition defines the details of a particular (version of a) code list.

Element information

Type: gc:CodeListDocument

Properties: Global, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
xml:base [0..1]xsd:anyURIBase URL which applies to relative location URIs.

Sample instance

<gc:CodeList>
   <Identification>
      <ShortName>CountryIdentificationCode</ShortName>
      <LongName xml:lang="en">Country</LongName>
      <LongName Identifier="listID">ISO3166-1</LongName>
      <Version>0.3</Version>
      <CanonicalUri>urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode</CanonicalUri>
      <CanonicalVersionUri>urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode-2.0</CanonicalVersionUri>
      <LocationUri>http://docs.oasis-open.org/ubl/os-ubl-2.0/cl/gc/default/CountryIdentificationCode-2.0.gc</LocationUri>
      <Agency>
         <LongName xml:lang="en">United Nations Economic Commission for Europe</LongName>
         <Identifier>6</Identifier>
      </Agency>
   </Identification>
   <ColumnSet>
      <Column Id="code" Use="required">
         <ShortName>Code</ShortName>
         <Data Type="normalizedString"/>
      </Column>
      <Column Id="name" Use="optional">
         <ShortName>Name</ShortName>
         <Data Type="string"/>
      </Column>
      <Column Id="numericcode" Use="optional">
         <ShortName>NumericCode</ShortName>
         <Data Type="string"/>
      </Column>
      <Key Id="codeKey">
         <ShortName>CodeKey</ShortName>
         <ColumnRef Ref="code"/>
      </Key>
   </ColumnSet>
   <SimpleCodeList>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AF</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>AFGHANISTAN</SimpleValue>
         </Value>
         <Value ColumnRef="numericcode">
            <SimpleValue>004</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AL</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>ALBANIA</SimpleValue>
         </Value>
         <Value ColumnRef="numericcode">
            <SimpleValue>008</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>ZM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>ZAMBIA</SimpleValue>
         </Value>
         <Value ColumnRef="numericcode">
            <SimpleValue>894</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>ZW</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>ZIMBABWE</SimpleValue>
         </Value>
         <Value ColumnRef="numericcode">
            <SimpleValue>716</SimpleValue>
         </Value>
      </Row>
   </SimpleCodeList>
</gc:CodeList>

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to pwalmsley@datypic.com