1 xml.instruct! :xml, :version => "1.0"
2 xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
3 xml.tag! "user", :id => @user.id,
4 :display_name => @user.display_name,
5 :account_created => @user.creation_time.xmlschema do
7 xml.tag! "description", @user.description
9 if @user.home_lat and @user.home_lon
10 xml.tag! "home", :lat => @user.home_lat,
11 :lon => @user.home_lon,
12 :zoom => @user.home_zoom
15 # i'd love to use "url_for_file_column, :absolute=>true", but that doesn't seem
16 # to work with the file_column plugin version we're using.
17 xml.tag! "img", :href => ("http://" + SERVER_URL + url_for_file_column(@user, "image"))
20 xml.tag! "languages" do
21 @user.languages.split(",") { |lang| xml.tag! "lang", lang }