3 "visible" => relation.visible,
4 "version" => relation.version,
5 "changeset" => relation.changeset_id,
6 "timestamp" => relation.timestamp.xmlschema,
7 "user" => relation.changeset.user.display_name,
8 "uid" => relation.changeset.user_id
11 xml.relation(attrs) do |r|
12 relation.relation_members.each do |m|
13 r.member(:type => m.member_type.downcase, :ref => m.member_id, :role => m.member_role)
16 relation.tags.each do |k, v|
17 r.tag(:k => k, :v => v)