Hi Imar,
In the try-it-out on page 247, VWD is flagging errors for two of the siteMapNodes.
1: The siteMapNode for ~/About/Default.aspx
2: The closing </siteMapNode> after the About Us line.
On page 246 you say "...there can only be one siteMapNode directly under the siteMap element."
However, the code in the book and in the resource file seems to violate this rule. (Or so it seems to me :-)
The code that I typed is the first codeblock. The code from resources is the second codeblock.
Thanks
Ken
--------------------
My Code
Code:
<?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 home page" />
<siteMapNode url="~/Reviews/Default.aspx" title="Reviews" description="Reviews published on this site" />
<siteMapNode url="~/Reviews/AllByGenre.aspx" title="By Genre" description="All Reviews Grouped by Genre" />
<siteMapNode url="~/Reviews/All.aspx" title="All Reviews" description="All Reviews" />
</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" />
</siteMap>
From RESOURCES
Code:
<?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 home page" />
<siteMapNode url="~/Reviews/Default.aspx" title="Reviews" description="Reviews published on this site" />
<siteMapNode url="~/Reviews/AllByGenre.aspx" title="By Genre" description="All Reviews Grouped by Genre" />
<siteMapNode url="~/Reviews/All.aspx" title="All Reviews" description="All Reviews" />
</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" />
</siteMap>