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="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <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>
  <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>
  <siteMapNode url="~/Login.aspx" title="Login" description="Log in to this web site" />
  </siteMapNode>
  <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" />
  </siteMapNode>
</siteMap>




http://www.workidoo.com
__________________
http://www.workidoo.com
Reply With Quote