Thread: web.sitemap
View Single Post
  #1 (permalink)  
Old June 13th, 2008, 08:17 AM
workidoo workidoo is offline
Authorized User
Join Date: Jun 2008
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to workidoo
Default web.sitemap

Hello again :)

Have a small problem, or an issue.

It is so that I tested web.sitemap to create menu that you explain in the book. And everything works perfectly what I have a problem with is that when I want to add more siteMapNode.

I have the following error "Exactly one <siteMapNode> elements required immediately inside the element <siteMap>." What this may be due to? I make no changes in MenuWrapper <div> I let it be as it is, in the book.

This is how my code look like:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="" >
  <siteMapNode url="~/" title="Home" description="Home">
    <siteMapNode url="~/Default.aspx" title="Home" description="Go to the homepage" />
    <siteMapNode url="~/Reviews/Default.aspx" title="Reviews" description="Rewievs published on this site">
      <siteMapNode url="~/Reviews/AllByGenre.aspx" title="By Genre" description="All Rewievs Grouped by Genre" />
      <siteMapNode url="~/Reviews/All.aspx" title="All Reviews" description="All Rewievs" />
  <siteMapNode url="~/About/Default.aspx" title="About" description="About this site">
    <siteMapNode url="~/About/Contact.aspx" title="Contact Us" description="Contact Us" />
    <siteMapNode url="~/About/AboutUs.aspx" title="About Us" description="About Us" />
  <siteMapNode url="~/Login.aspx" title="Login" description="Log in to this web site" />
  <siteMapNode url="~/TestAbout/Default.aspx" title="Test About" description="About this site">
    <siteMapNode url="~/TestAbout/Contact.aspx" title="Test Contact Us" description="Contact Us" />
    <siteMapNode url="~/TestAbout/AboutUs.aspx" title="Test About Us" description="About Us" />
Reply With Quote