An XML Schema is a language for expressing constraints about XML documents. There are several different schema languages in widespread use, but the main ones are Document Type Definitions (DTDs), Relax-NG, Schematron and W3C XSD (XML Schema Definitions).
The Uses of Schema are
to provide documentation that is both human-readable and machine-processable;
to give a formal description of one or more documents.