<xmllint schema="schema.xsd" file="config.xml"/>
Validate one XML file against one XSD file.
<xmllint schema="schema.xsd"> <fileset dir="."> <include name="**/config.xml"/> </fileset> </xmllint>
Validate more XML files against one XSD file.
<fileset dir="./sources" id="sources"> <include name="main.xml"/> <include name="chapter*.xml"/> <include name="appendix*.xml"/> </fileset> <property name="docbook.relaxng" value="/usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng"/> <xmllint schema="${docbook.relaxng}" useRNG="yes"> <fileset refid="sources" /> </xmllint>
Validate a set of DocBook files against the DocBook RNG grammar