You need to ask yourself the question of how the abbreviation is somehow stored in your xml answer. I assume this is not the case, in which case you will need to create an object in JavaScript, for example:
var countryCodes = { 'NL' : 'Netherlands', 'FR' : 'France'
Note: this actually means that you will have a huge piece of code creating an array of countryCodes, which is more or less a database. Please consider entering a separate js file called countries.js or any other, and include if as the (first) javascript file.
Now you can simply transfer from countryCode to your real name and vice versa, i.e.
countryCodes['NL']
will lead to the Netherlands and
inverseCountryCodes['France']
will result in "FR".
The best option would be to determine what the most stable representation for the country is, I think it will be the country code, since the names have different meanings in different languages. So you can think of returning (server side) countryCode as xml.
Anyroad, good luck!
ATTENTION:
I just found this: http://www.geonames.org/export/ws-overview.html
This is a good list of web queries you can do to get all kinds of geoinformation. countryInfo seems to do exactly the opposite of what you want, but still it can help you. For example, this way you can get information about Germany. Allowing the server to respond with code instead of a name, this may be exactly what you need!
http://api.geonames.org/countryInfoJSON?formatted=true&lang=it&country=DE&username=demo&style=full
If you will use this, do not forget to make your own api.geoname.org account, instead of using demo-username;)