Generate xsd from xml with trang

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).

Create cmd aliases in Windows

While Linux has a simple command alias, this will require more work in windows. We will use the doskey command + wtf workaround…