Convert menus to XML.