I have been working on twitter api and found it easy to get json/xml feed from an url like
http://twitter.com/friends/ids.json?screen_name=Planemad&jsoncallback=?
similarly i wanted to know if there is a way to get OSM json/xml data from an url and use that and use it on an OSM map....