Commandline XML Schema validation of Google Sitemap file
From FVue
Contents
Problem
Having manually created a Google Sitemap file, how do I validate it against Google's XML Schema?
Solution
- Install XMLStarlet. (Or type
xmlto check if it's already installed) - 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.
Advertisement