sitemap

Creating a valid sitemap with custom attributes

萝らか妹 提交于 2019-12-07 10:40:53
问题 I'm working on a website. My website has a sitemap.xml file. That file can be seen here. If you scroll down, you will see a url entry that includes some custom tags. Those tags are prefixed with blog: The definition for the blog namespace can be seen here. I've submitted my sitemap to the Google Webmaster Tools. However, I receive warnings around the entries associated with the blog namespace. Those warnings appear as shown here: Warnings Invalid XML tag This tag was not recognized. Please

How to link to a child site-map file from a parent site map in ASP.NET MVC4 using MVCSitemapProvider?

一世执手 提交于 2019-12-06 15:35:56
I am using MVCSitemapProvider by Maarten Balliauw with Ninject DI in MVC4. Being a large-scale web app, enumerating over the records to generate the sitemap xml accounts for 70% of the page load time. For that purpose, I went for using new sitemap files for each level-n dynamic node provider. <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"> <mvcSiteMapNode title="$resources:SiteMapLocalizations,HomeTitle"

Using Scrapy to parse sitemaps

半腔热情 提交于 2019-12-06 14:43:49
问题 I want to be able to use scrapy to crawl links on a sitemap. I don't know much about this application, so I would be interested in any links/info/documentation you could provide. Thanks 回答1: A new generic spider has just been added to Scrapy trunk, for this purpose. It will be available on next release (Scrapy 0.14) Code here: http://snippets.scrapy.org/snippets/20/ Documentation here: http://readthedocs.org/docs/scrapy/en/latest/topics/spiders.html#sitemapspider 回答2: All of the documentation

Parsing the urls in sitemap with different url format using sitemap spider in scrapy, python

隐身守侯 提交于 2019-12-06 11:11:35
I am using sitemap spider in scrapy, python. The sitemap seems to have unusual format with '//' in front of urls: <url> <loc>//www.example.com/10/20-baby-names</loc> </url> <url> <loc>//www.example.com/elizabeth/christmas</loc> </url> myspider.py from scrapy.contrib.spiders import SitemapSpider from myspider.items import * class MySpider(SitemapSpider): name = "myspider" sitemap_urls = ["http://www.example.com/robots.txt"] def parse(self, response): item = PostItem() item['url'] = response.url item['title'] = response.xpath('//title/text()').extract() return item I am getting this error: raise

SiteMap Navigation and Query String

家住魔仙堡 提交于 2019-12-06 08:31:56
问题 Currently I am trying to figure out how I can add dynamic query string parameters to my sitemap navigation menu. For example, the user chooses the source and edition he wants to work with. I have a simple sitemap that creates navigational links but the parameters the user chose need to be passed in the query string. The default map looks like this: <siteMapNode url="" title="" description="" > <siteMapNode url="~/Image.aspx?location=Our Products" title="Our Products" description="Our Products

Creating Sharepoint/MOSS sitemap

懵懂的女人 提交于 2019-12-06 07:26:14
I'm trying to create a sitemap for my MOSS publishing site, i've got two approaches but seem to be stuck with both. My first approach is to use the PortalSiteMapProvider, which is already created and nicely cached... PublishingWeb rootWeb = PublishingWeb.GetPublishingWeb(SPContext.Current.Site.RootWeb); //Get the URL of the default page in the web string defaultPageUrl = rootWeb.DefaultPage.ServerRelativeUrl; PortalListItemSiteMapNode webNode = (PortalListItemSiteMapNode)PortalSiteMapProvider.CurrentNavSiteMapProviderNoEncode.FindSiteMapNode(defaultPageUrl); HttpContext.Current.Response.Output

Parse XML to UL

半世苍凉 提交于 2019-12-06 05:29:13
问题 I am trying to use JQuery to parse a sitemap.xml to look like this HTML: http://astuteo.com/slickmap/demo/ After working on it for a few hours I decided I really need some help in the right direction. the main template it has is this, where each indent is a different directory level: <ul id="primaryNav" class="col4"> <li id="home"><a href="http://sitetitle.com">Home</a></li> <li><a href="/services">Services</a> <ul> <li><a href="/services/design">Graphic Design</a></li> <li><a href="/services

Resource file for MVCSiteMapProvider

℡╲_俬逩灬. 提交于 2019-12-06 05:26:57
I'm using MVCSiteMapProvider for generating menus with localization for my application. My program works fine as long as the resource files for the menus are in the App_GlobalResources folder. When I move the resources into another folder, it gives an error mentioning not able to find the resources. I'm using $resources:Resource,menu_Home for accessing the resources in the MVC.sitemap file. I want to keep the resource files in a custom folder without storing them in the App_GlobalResources folder. Can anyone help? it happens because of the following code in MvcSiteMapNode.Title property: var

Escaped # in URLs, sitemap and handling by Google crawler

拈花ヽ惹草 提交于 2019-12-06 03:57:00
We have a large set of URLs of which some contain a hash character. The hash is not to indicate a fragment, but part of the URL path, so we escape the hash by %23 , e.g. http://example.com/example%231 http://example.com/another-example%232 … Our sitemap.xml lists these URLs as follows: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://example.com/example%231</loc> </url> <url> <loc>http://example.com/another-example%232</loc> </url> <!-- and so on … --> </urlset> Now, the Google Search Console reports 404 errors for the following URLs: http://example.com/example

Google multilingual sitemap issue

痞子三分冷 提交于 2019-12-06 02:33:59
问题 I have a sitemap issue. I am working on a multilingual website and I'm trying to use the Google method to indicate alternate language pages, as it is described here : https://support.google.com/webmasters/answer/2620865?hl=en. You can see my sitemap here : http://preprod.fabric-a.fr/princesse-nomade/sitemap.xml It seems that this sitemap is broken, and I don't understand why, it respects the example given by google.. Curiously, when I replace xmlns:xhtml="http://www.w3.org/1999/xhtml" by