What’s the simplest way to validate XML files against the DocBook 5 schema from the command-line?
In particular, I’m talking about DocBook documents that are split up across several files and included with the <xi:include href="..."/>.
The specific use case here is finding schema violations in proposed changes in the OpenStack documentation.
If I open up files in the oXygen GUI editor, it will identify schema violations, but I’d like to be able to run these checks from the command line.
xmllintdoes what I need, for example:This outputs a string that indicates whether validation was successful: