![]() |
|
|
|||||||
![]() |
ASP Net - Asp.Net 2.0 Web Site Map (Web.sitemap) |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: 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" <> 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] |
|
|
|
#3 |
|
Posts: 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" <> 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 |
|
|
|
#4 |
|
Posts: 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" <> 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 |
|
|
|
#5 |
|
Posts: 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" <> 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] |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |