
menu_item.menu_item_langs.each do |menu_item_lang|
  if menu_item_lang.enabled == true and menu_item_lang.visible == true
    xml.url do
      xml.loc         request.protocol+request.host_with_port+menu_item_path(:url => menu_item_lang.url, :lang => menu_item_lang.lang_site.slug)
      xml.lastmod     w3c_date(menu_item.updated_at)
    end
  end
end

if menu_item.children
  menu_item.children.order(:position).each do |menu_item| 
    xml << render(:partial => "mi", :locals => {:menu_item => menu_item})
  end
  
end