Tuesday, January 30, 2007

CIA Fact Book Parser

One day I realized that I'd like to have an XML file with data on all countries in the world. Google told me that CIA World Factbook was the primary source of inspiration and so I started a brief journey into these data files. The outcome is a data set ready and parseable by (more or less) any XML parser available. In addition I also supply PHP code for transforming the CIA World Factbook data files into readable XML.

Download CIA Factbook 2006 XML file (4mb) Download PHP script (4kb)

1 comment:

Rêveur said...

A big THANK YOU to you, I've been searching this for a while.