![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New to the CF scene Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
my first sitemap, with errors
Info:
Creating Sitemap. Why? I want it to be the data source for an asp.net navigation control. Using Expression Web 2 on XP Home SP3. Okay, here is my sitemap as it stands now: <?xml version="1.0" encoding="utf-8" ?>When previewed in IE8, I get this error: Server Error in '/AquariumProOnline' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The XML sitemap config file web.sitemap could not be loaded. The 'siteMap' start tag on line 2 does not match the end tag of 'siteMapNode'. Line 7, position 3. Source Error: Line 5: </siteMapNode> Line 6: <siteMapNode url="advertise.aspx" tile="Advertise" description="Advertise on AquariumProOnline.com" /> Line 7: </siteMapNode> Line 8: <siteMapNode url="contact.aspx" title="Contact" description="Contact AquariumProOnline.com" /> Line 9: </siteMapNode> Source File: F:\Websites\AquariumProOnline\web.sitemap Line: 7 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 |
|
|
|
|
|
PM User | #2 |
|
Senior Coder ![]() ![]() Join Date: Dec 2007
Posts: 4,658
Thanks: 374
Thanked 562 Times in 551 Posts
![]() ![]() |
as far as I see there is no http://schemas.microsoft.com/AspNet/SiteMap-File-1.0. Why do you use this?
too much SiteMapNode, you don't have any schema, this structure is very confusing for both human and machine since elements with same name are nested. There is already a sitemap protocol with a well defined structure: http://www.sitemaps.org/ why don't you use this one? best regards |
|
|
|
|
|
PM User | #3 |
|
New to the CF scene Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
I used one that shipped with a learning CD. I looked at W3Schools, and found out it is dead simple. So in i went cleaned it up, and made it so easy a cave man can understand it. Now it works. Thanks.
|
|
|
|
|
|
PM User | #5 |
|
Comrade Grammar Nazi ![]() ![]() Join Date: Oct 2007
Location: Do you know where Nazi Zombies come from?
Posts: 2,216
Thanks: 13
Thanked 182 Times in 180 Posts
![]() |
You close the element twice.
Line 6: <siteMapNode url="advertise.aspx" tile="Advertise" description="Advertise on AquariumProOnline.com" /> Line 7: </siteMapNode> Get rid of either the end tag or the trailing slash.
__________________
Cyan Light Industries | It's Firefox, just easier on the eyes Follow me on Twitter |
|
|
|
|
|
PM User | #6 | |
|
Senior Coder ![]() ![]() Join Date: Dec 2007
Posts: 4,658
Thanks: 374
Thanked 562 Times in 551 Posts
![]() ![]() |
Quote:
The xml structure is ambigous but tags closing is correct, ![]() Code:
Edit: oops, you are right, now I see that starting with line 6 op xml have pair of tags best regards Last edited by oesxyl; 11-09-2009 at 11:30 PM.. Reason: fix the line number from 4 to 6 |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|