What exactly is the XML schema?

An XML schema is a certain type of XML document. It is expressed in constraints, on top of the normal XML constraints, on the structure and content of documents of that type.