467,150 Members | 1,147 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,150 developers. It's quick & easy.

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

Sep 18 '06 #1
  • viewed: 5339
Share:
4 Replies
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" <md*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro 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

Sep 18 '06 #2
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" <md*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro 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
Sep 18 '06 #3
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" <md*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro 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
>
Sep 18 '06 #4
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" <md*****@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr 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" <md*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro 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

Sep 18 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chanaka_2005 | last post: by
1 post views Thread by Griff | last post: by
reply views Thread by John Yopp | last post: by
6 posts views Thread by shapper | last post: by
6 posts views Thread by Lucas Ponzo | last post: by
1 post views Thread by Tarun Mistry | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.