By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,015 Members | 1,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,015 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.