Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source of ISO data in xml format? [closed]

Tags:

xml

standards

iso

I was just wondering if anyone knew of a source of standard ISO data in xml format, such as ISO 3166 (Country codes/names), ISO 4217 (Currency Codes) or ISO 639 (Languages)?

If it was in any way 'official' and maintained with any changes to the standards that would be great!

UPDATE: I can't use files with non-commercial use restrictions.

UPDATE 2: Please, if you feel it necessary to vote this down, or vote it closed as a dupe, point me in the direction of the existing question with a suitable answer.

like image 949
UpTheCreek Avatar asked Sep 20 '09 10:09

UpTheCreek


2 Answers

The CLDR - Unicode Common Locale Data Repository may be of interest.

The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages for such common software tasks as:

  • formatting of dates, times, and time zones,
  • formatting numbers and currency values
  • sorting text
  • choosing languages or countries by name

CLDR uses the XML format provided by UTS #35: Locale Data Markup Language (LDML). LDML is a format used not only for CLDR, but also for general interchange of locale data, such as in Microsoft's .NET.

http://cldr.unicode.org/

like image 83
Doug Domeny Avatar answered Jan 03 '23 17:01

Doug Domeny


A good place to start is the ISO website (perhaps with the help of Google). The country codes are quite easy to find.

Neither the currency codes nor the language codes appear to be available in XML, plus the ISO charges to download them.

You can download a demlited version of ISO language codes from the Library of Congress. It would be easy enough to turn that list into XML. You could scrape this page from the ISO web site to get the currency codes.

If you are interested in other ISO codes you haven't list the ISO FAQ includes a list of commonly used ones.

So that's it for "official".

Edit

With regards to your request for sites without commercial use restrictions: if you get the Codes from some other site then that site is in breach of ISO Copyright. They do not have the right to waive the ISO's non-commercial clause. So you still cannot legally use that information in a commercial context.

like image 30
APC Avatar answered Jan 03 '23 17:01

APC