GNOME Bugzilla – Bug 143880
Schema validation failure returns success code
Last modified: 2009-08-15 18:40:50 UTC
If xmllint is run with the --schema validation, and the xml is not valid according to that schema, xmllint returns with error code 0 (which is success). This makes it difficult integrate xmllint into a makesystem, where the errorcode is needed to automatically detect errors. $ sh | xmllint cliUserAdmin.xml --schema mdf.xsd --noout; echo $? Element MenuDefinitionFile content check failed cliUserAdmin.xml fails to validate 0
Fixed in CVS - it should now return code 3 (XMLLINT_ERR_VALID). Thanks for the report.
This should be closed in libxml2-2.6.11, thanks, Daniel