Command line tool to validate and pretty-print XML syntax of input files.
Windows and macOS binaries are available under Releases
Or install from source:
go get -u github.com/martinlindhe/validxml
Exit code will be 0 if file is good.
$ validxml file.xml
OK: file.xml
$ curl http://site.com/file.xml | validxml
OK: -
$ validxml -p file.xml
Under MIT