Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Asp.Net 2.0 Web Site Map (Web.sitemap)

 
Thread Tools Search this Thread
Old 09-18-2006, 05:24 PM   #1
Default Asp.Net 2.0 Web Site Map (Web.sitemap)


Hello,

I have 2 questions about Asp.Net 2.0 web.sitemap:

1. Where can I find the list of all siteMapNode attributes?

I looked eveywhere and couldn't find it.

2. I created a Web.sitemap and somehowI am getting an error:

"The element siteMap in the namespace
'http://schemas/microsoft.com/AspNet/SiteMap-File.1.0' has invalid
child element 'siteMapaNode' in namespace
"http://schemas.microsoft.com/AspNet/SiteMap-File.1.0".


My Web.sitemap file is:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap
enableLocalization = "true"
xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode
url = "~/default.aspx"
changefreq = "Daily"
description = ""
priority = "0.5"
resourceKey = "Default"
title = "" />
<siteMapNode
url = "~/collection.aspx"
changefreq = "Daily"
description = ""
priority = "0.5"
resourceKey = "Collection"
title = "" />
</siteMap>


Could someone, please, help me on these two questions?

Thanks,

Miguel



shapper
  Reply With Quote
Old 09-18-2006, 06:11 PM   #2
Steve C. Orr [MVP, MCSD]
 
Posts: n/a
Default Re: Asp.Net 2.0 Web Site Map (Web.sitemap)
Url, Title, and Description are the only attributes required by each
siteMapNode. You can add other attributes if you wish, but you cannot add
other elements or you'll get the error message you described.

Here's more info:
http://SteveOrr.net/articles/SiteMaps.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net


"shapper" <> wrote in message
news: ups.com...
> Hello,
>
> I have 2 questions about Asp.Net 2.0 web.sitemap:
>
> 1. Where can I find the list of all siteMapNode attributes?
>
> I looked eveywhere and couldn't find it.
>
> 2. I created a Web.sitemap and somehowI am getting an error:
>
> "The element siteMap in the namespace
> 'http://schemas/microsoft.com/AspNet/SiteMap-File.1.0' has invalid
> child element 'siteMapaNode' in namespace
> "http://schemas.microsoft.com/AspNet/SiteMap-File.1.0".
>
>
> My Web.sitemap file is:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <siteMap
> enableLocalization = "true"
> xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
> <siteMapNode
> url = "~/default.aspx"
> changefreq = "Daily"
> description = ""
> priority = "0.5"
> resourceKey = "Default"
> title = "" />
> <siteMapNode
> url = "~/collection.aspx"
> changefreq = "Daily"
> description = ""
> priority = "0.5"
> resourceKey = "Collection"
> title = "" />
> </siteMap>
>
>
> Could someone, please, help me on these two questions?
>
> Thanks,
>
> Miguel
>





Steve C. Orr [MVP, MCSD]
  Reply With Quote
Old 09-18-2006, 07:08 PM   #3
shapper
 
Posts: n/a
Default Re: Asp.Net 2.0 Web Site Map (Web.sitemap)
Sorry,

But I am completly lost on this.
So if I have 3 pages in my web site: default.aspx, collection.aspx and
contacts.aspx how would my Web.sitemap look?

Thanks,
Miguel

Steve C. Orr [MVP, MCSD] wrote:
> Url, Title, and Description are the only attributes required by each
> siteMapNode. You can add other attributes if you wish, but you cannot add
> other elements or you'll get the error message you described.
>
> Here's more info:
> http://SteveOrr.net/articles/SiteMaps.aspx
>
> --
> I hope this helps,
> Steve C. Orr
> MCSD, MVP, CSM
> http://SteveOrr.net
>
>
> "shapper" <> wrote in message
> news: ups.com...
> > Hello,
> >
> > I have 2 questions about Asp.Net 2.0 web.sitemap:
> >
> > 1. Where can I find the list of all siteMapNode attributes?
> >
> > I looked eveywhere and couldn't find it.
> >
> > 2. I created a Web.sitemap and somehowI am getting an error:
> >
> > "The element siteMap in the namespace
> > 'http://schemas/microsoft.com/AspNet/SiteMap-File.1.0' has invalid
> > child element 'siteMapaNode' in namespace
> > "http://schemas.microsoft.com/AspNet/SiteMap-File.1.0".
> >
> >
> > My Web.sitemap file is:
> >
> > <?xml version="1.0" encoding="utf-8" ?>
> > <siteMap
> > enableLocalization = "true"
> > xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
> > <siteMapNode
> > url = "~/default.aspx"
> > changefreq = "Daily"
> > description = ""
> > priority = "0.5"
> > resourceKey = "Default"
> > title = "" />
> > <siteMapNode
> > url = "~/collection.aspx"
> > changefreq = "Daily"
> > description = ""
> > priority = "0.5"
> > resourceKey = "Collection"
> > title = "" />
> > </siteMap>
> >
> >
> > Could someone, please, help me on these two questions?
> >
> > Thanks,
> >
> > Miguel
> >




shapper
  Reply With Quote
Old 09-18-2006, 07:29 PM   #4
shapper
 
Posts: n/a
Default Re: Asp.Net 2.0 Web Site Map (Web.sitemap)
Hi,

VS2005 creates the default Web.sitemap as follows:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>

Which means there must be a parent siteMapNode.
In most examples I saw this parent is used as default.
But why placing default.aspx as a parent?

Anyway, can and should I leave it empty?

I am getting the error because I am using:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMap>

Thanks,
Miguel
shapper wrote:
> Sorry,
>
> But I am completly lost on this.
> So if I have 3 pages in my web site: default.aspx, collection.aspx and
> contacts.aspx how would my Web.sitemap look?
>
> Thanks,
> Miguel
>
> Steve C. Orr [MVP, MCSD] wrote:
> > Url, Title, and Description are the only attributes required by each
> > siteMapNode. You can add other attributes if you wish, but you cannot add
> > other elements or you'll get the error message you described.
> >
> > Here's more info:
> > http://SteveOrr.net/articles/SiteMaps.aspx
> >
> > --
> > I hope this helps,
> > Steve C. Orr
> > MCSD, MVP, CSM
> > http://SteveOrr.net
> >
> >
> > "shapper" <> wrote in message
> > news: ups.com...
> > > Hello,
> > >
> > > I have 2 questions about Asp.Net 2.0 web.sitemap:
> > >
> > > 1. Where can I find the list of all siteMapNode attributes?
> > >
> > > I looked eveywhere and couldn't find it.
> > >
> > > 2. I created a Web.sitemap and somehowI am getting an error:
> > >
> > > "The element siteMap in the namespace
> > > 'http://schemas/microsoft.com/AspNet/SiteMap-File.1.0' has invalid
> > > child element 'siteMapaNode' in namespace
> > > "http://schemas.microsoft.com/AspNet/SiteMap-File.1.0".
> > >
> > >
> > > My Web.sitemap file is:
> > >
> > > <?xml version="1.0" encoding="utf-8" ?>
> > > <siteMap
> > > enableLocalization = "true"
> > > xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
> > > <siteMapNode
> > > url = "~/default.aspx"
> > > changefreq = "Daily"
> > > description = ""
> > > priority = "0.5"
> > > resourceKey = "Default"
> > > title = "" />
> > > <siteMapNode
> > > url = "~/collection.aspx"
> > > changefreq = "Daily"
> > > description = ""
> > > priority = "0.5"
> > > resourceKey = "Collection"
> > > title = "" />
> > > </siteMap>
> > >
> > >
> > > Could someone, please, help me on these two questions?
> > >
> > > Thanks,
> > >
> > > Miguel
> > >




shapper
  Reply With Quote
Old 09-18-2006, 10:20 PM   #5
Steve C. Orr [MVP, MCSD]
 
Posts: n/a
Default Re: Asp.Net 2.0 Web Site Map (Web.sitemap)
You can leave the parent siteMapNode's default attribute empty if you want,
but the parent siteMapNode must be present in order for it to be a valid
site map file. That's why you're getting the error.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net


"shapper" <> wrote in message
news: oups.com...
> Hi,
>
> VS2005 creates the default Web.sitemap as follows:
> <?xml version="1.0" encoding="utf-8" ?>
> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
> <siteMapNode url="" title="" description="">
> <siteMapNode url="" title="" description="" />
> <siteMapNode url="" title="" description="" />
> </siteMapNode>
> </siteMap>
>
> Which means there must be a parent siteMapNode.
> In most examples I saw this parent is used as default.
> But why placing default.aspx as a parent?
>
> Anyway, can and should I leave it empty?
>
> I am getting the error because I am using:
>
> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
> <siteMapNode url="" title="" description="" />
> <siteMapNode url="" title="" description="" />
> </siteMap>
>
> Thanks,
> Miguel
> shapper wrote:
>> Sorry,
>>
>> But I am completly lost on this.
>> So if I have 3 pages in my web site: default.aspx, collection.aspx and
>> contacts.aspx how would my Web.sitemap look?
>>
>> Thanks,
>> Miguel
>>
>> Steve C. Orr [MVP, MCSD] wrote:
>> > Url, Title, and Description are the only attributes required by each
>> > siteMapNode. You can add other attributes if you wish, but you cannot
>> > add
>> > other elements or you'll get the error message you described.
>> >
>> > Here's more info:
>> > http://SteveOrr.net/articles/SiteMaps.aspx
>> >
>> > --
>> > I hope this helps,
>> > Steve C. Orr
>> > MCSD, MVP, CSM
>> > http://SteveOrr.net
>> >
>> >
>> > "shapper" <> wrote in message
>> > news: ups.com...
>> > > Hello,
>> > >
>> > > I have 2 questions about Asp.Net 2.0 web.sitemap:
>> > >
>> > > 1. Where can I find the list of all siteMapNode attributes?
>> > >
>> > > I looked eveywhere and couldn't find it.
>> > >
>> > > 2. I created a Web.sitemap and somehowI am getting an error:
>> > >
>> > > "The element siteMap in the namespace
>> > > 'http://schemas/microsoft.com/AspNet/SiteMap-File.1.0' has invalid
>> > > child element 'siteMapaNode' in namespace
>> > > "http://schemas.microsoft.com/AspNet/SiteMap-File.1.0".
>> > >
>> > >
>> > > My Web.sitemap file is:
>> > >
>> > > <?xml version="1.0" encoding="utf-8" ?>
>> > > <siteMap
>> > > enableLocalization = "true"
>> > > xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
>> > > <siteMapNode
>> > > url = "~/default.aspx"
>> > > changefreq = "Daily"
>> > > description = ""
>> > > priority = "0.5"
>> > > resourceKey = "Default"
>> > > title = "" />
>> > > <siteMapNode
>> > > url = "~/collection.aspx"
>> > > changefreq = "Daily"
>> > > description = ""
>> > > priority = "0.5"
>> > > resourceKey = "Collection"
>> > > title = "" />
>> > > </siteMap>
>> > >
>> > >
>> > > Could someone, please, help me on these two questions?
>> > >
>> > > Thanks,
>> > >
>> > > Miguel
>> > >

>





Steve C. Orr [MVP, MCSD]
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Site to Site VPN duplicate subnets chuckbudreau Hardware 6 10-22-2009 08:36 PM
ASP.Net Session Cookie Lost on mozilla/netscape After return from cross domain saurabhm Software 3 09-18-2009 12:36 PM
Slowness of site to stie VPN aung Hardware 0 11-24-2008 07:36 AM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
Top 15 Best Useful Site Picks kristopher@anonymous.to DVD Video 0 07-18-2005 07:07 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46