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 xml.tag! "contributor-terms",
10 :agreed => !!@user.terms_agreed,
11 :pd => !!@user.consider_pd
12 if @user.home_lat and @user.home_lon
13 xml.tag! "home", :lat => @user.home_lat,
14 :lon => @user.home_lon,
15 :zoom => @user.home_zoom
18 xml.tag! "img", :href => (url_for_file_column(@user, "image", :absolute => true))
21 xml.tag! "languages" do
22 @user.languages.split(",") { |lang| xml.tag! "lang", lang }