About XML Validator
This page can be used to check that an XML document – a
Google Sitemap,
for example – is both well-formed and valid against a specified schema. Schemas
published by both Google and sitemaps.org for
Sitemaps and Sitemap Indexes are built in and can be selected from the
drop-down list. Or you can supply your own schema.
To use this validator, first enter the XML you wish to check under the "XML"
tab. The fastest way to enter the XML is to copy and paste from a file
on your computer. You can also import a file from your computer – including an XML file
compressed with GZip.
Well-Formed XML: If you only want to check that the XML is well-formed, simply click the
"Validate" button. (Make sure you have selected "No Schema" from the schemas
list.)
Validating XML: If you want to also validate your XML against a particular schema, enter it
under the "Schema" tag. Google's and sitemap.org's schemas are built in. Once your schema
is in place, click the "Validate" button. If your XML does not validate, a button will appear offering
the option for a full explanation.
Clearing Text: To clear all text under the "XML" or "Schema" tabs, hold down the shift
key and click in the text area with the left mouse button.
Importing Files: Rather than copying and pasting XML or a schema, you can
use the "Import File" button to select a file from your computer that will be
uploaded to (but not saved on) the server and then imported under the active
tab. Files compressed using GZip and bearing a ".gz" file extension will be
automatically decompressed. (Note" The import feature has not been tested
for large files and, in any event, there is a maximum limit of about 2MB.)