$ man trang trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] $input $output
See:
XMLStarlet is a set of command line utilities (tools) which can be used to transform, query, validate, and edit XML documents and files using simple set of shell commands in similar way it is done for plain text files using UNIX grep, sed, awk, diff, patch, join, etc.
cmd# setup.exe -p libxml2,libxslt
libxslt provide xsltproc, libxml2 provide xmlcatalog and xmllint.
$ xmllint --xpath $XPATH file.xml
$ jing schema.rng in.xml $ xmllint --relaxng schema.rng in.xml
See:
$ xmllint --valid --noout file.xml
$ xmllint --noout --dtdvalid URL file.xml
$ xmllint --noout --relaxng schema.rng file.xml
If your schema is in Compact Format, you can use the trang program to convert it to RNG format:
$ trang file.rnc file.rng
$ xmllint --noout --schema schema.xsd file.xml