A quick an easy command line XML validator can be found at:
https://github.com/amouat/xsd-validator
http://www.adrianmouat.com/bit-bucket/2013/11/xml-schema-validation/
This is a simple java wrapper for xerces - what more could one want for simple validation
Even better why not set the path in the path environment variable and then call it from anywhere. sorted