An xsd (XML Schema definition) is a .xsd file that describes the structure of an XML document and allows us to validate and to have autocompletion on our xml file, for example with a xml editor like XMLNotePad.

An easy way do this is to generate your xsd from xml with trang command line tool. Trang is written in java and packaged for use with a Java runtime (>=version5).