After reading wonderful article by Premshree Pillai

haap://articles.sitepoint.com/article/server-side-xml-javascript
(replace haap with http)

I came to know how to handle xml using javascript if the xml is on your server.

But in the website I'm trying to build, I'm using a service to retrieve xml for each user that views my webpage. Actually I'm trying to access his IP address and then going to find his country.

browse following link
haap://ipinfodb.com/ip_query2_country.php?ip=74.125.45.100
(replace haap with http)

to this link if you give IP address as parameter, it gives a xml file which contains the country of the user.

Can someone tell me how can I create an object of XML using this file/url in JavaScript?