views:

138

answers:

0

Hi, In my ASP.NET Page_load I have this code:

  SiteMenu.DataSource = new XmlDataSource();
  ((XmlDataSource)SiteMenu.DataSource).ID = "menu";
  ((XmlDataSource)SiteMenu.DataSource).Data = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><siteMap>   <siteMapNode title=\"default\" description=\"my title\"  url=\"http://www.google.com\"/&gt;&lt;/siteMap&gt;";
  SiteMenu.DataBind();

Where SiteMenu is an Asp:menu control. But for some reason I'm getting a menu with one element with name "siteMap" and a child element with name "siteMapNode".

I would like to have only one element (rappresented by the ) with title "default". Any Idea of what I'm doing wrong?