[Pkg-isocodes-devel] New XML structure for iso-codes

Tobias Quathamer toddy at debian.org
Fri Nov 8 21:55:06 UTC 2013


Hi all,

I've been thinking about a new structure for our XML files, as we've
discussed earlier this year. Among the changes is the inclusion of the
XML version in the file itself.

Below is a draft for ISO 3166. If you have suggestions or remarks about
this change, feel free to post it here. I'll go forward with the other
XML files soon. When we've reached a consensus, I'll first update the
program isoquery (which can be used to extract the data from the XML
files) to cope with this change. Afterwards, I'd upload iso-codes with
the new XML file structure.

I think we should go forward with this change now, considering the
freeze will happen in about one year from now. This should be plenty of
time to migrate.

Regards,
Tobias




<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE isocodes [
  <!ELEMENT isocodes (item)+>
  <!ATTLIST isocodes
    standard            CDATA   #REQUIRED
    version             CDATA   #REQUIRED
  >
  <!ELEMENT item EMPTY>
  <!ATTLIST item
    alpha_2_code        CDATA   #REQUIRED
    alpha_3_code        CDATA   #REQUIRED
    numeric_code        CDATA   #REQUIRED
    common_name         CDATA   #IMPLIED
    official_name       CDATA   #IMPLIED
    name                CDATA   #REQUIRED
  >
]>
<isocodes standard="3166" version="4">
  <item
    alpha_2_code="AF"
    alpha_3_code="AFG"
    numeric_code="004"
    official_name="Islamic Republic of Afghanistan"
    name="Afghanistan" />
  <item
    alpha_2_code="AX"
    alpha_3_code="ALA"
    numeric_code="248"
    name="Åland Islands" />
...
  <item
    alpha_2_code="ZM"
    alpha_3_code="ZMB"
    numeric_code="894"
    name="Zambia"
    official_name="Republic of Zambia" />
  <item
    alpha_2_code="ZW"
    alpha_3_code="ZWE"
    numeric_code="716"
    name="Zimbabwe"
    official_name="Republic of Zimbabwe" />
</isocodes>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-isocodes-devel/attachments/20131108/dcf190b1/attachment.sig>


More information about the Pkg-isocodes-devel mailing list