Commandline XML Schema validation of Google Sitemap file

From FVue
Jump to: navigation, search

Problem

Having manually created a Google Sitemap file, how do I validate it against Google's XML Schema?

Solution

  1. Install XMLStarlet. (Or type xml to check if it's already installed)
  2. Type:
xml val -e --xsd http://www.google.com/schemas/sitemap/0.84/sitemap.xsd sitemap.xml
sitemap.xml - valid

Journal

20061006

Google Sitemaps (BETA) Help offers link to W3C XML Schema Tools but I don't see an easy commandline solution.

I remember XMLStarlet: a command line toolkit.

Comments

blog comments powered by Disqus