xml schema validation using shell script
Is it possible to validate an XML file against a XML schema definition using shell sc开发者_StackOverflow中文版ript? Its easy to do with Java but can't find in the internet on how to get this done using shell script.
If you have it installed you can use xmllint --noout -schema [schema name]
[file name]
More than likely you would need to either use a command line interface to a third party product, or write your own command to validate then call that from the shell.
I don't know whether you will like it or not, but you can invoke a Java code from your shell script, and then you can use native API for validating an XML or other validations on data present in XML.
精彩评论