Strictly Programming

Validating sitemap.xml in Intellij IDEA

Posted in Uncategorized by sqllyw on 01/15/2009


Reference Link
There are several steps to enable the sitemap validation in Intellij:

Download the xsd file from here.

Register the xsd file downloaded with Intellij

Open settings/resources:

Create a sitemap file with xsd info.

	<?xml version="1.0" encoding="UTF-8" ?>
	<urlset xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance"
		         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"
	             xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	    <url>
	        <loc>http://www.sample.com/0001</loc>
	        <lastmod>2009-01-15</lastmod>
	        <changefreq>daily</changefreq>
	    </url>
	</urlset>
	

That’s it, you can use Intellij’s validation in the editor to check your sitemap, here is a screen shot from the IDEA’s editor:

Advertisements
Tagged with:

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: