xml-validate
Validate XML against schemas
TLDR
Validate against DTD
$ xml validate [file.xml]
Validate against schema$ xml validate --xsd [schema.xsd] [file.xml]
Validate against RelaxNG$ xml validate --relaxng [schema.rng] [file.xml]
Validate well-formedness only$ xml validate --well-formed [file.xml]
SYNOPSIS
xml validate [options] file...
DESCRIPTION
xml validate validates XML documents against schemas. Part of xmlstarlet toolkit. Supports DTD, XML Schema (XSD), and RelaxNG validation.
PARAMETERS
--xsd file
Validate against XML Schema.--dtd file
Validate against DTD.--relaxng file
Validate against RelaxNG schema.--well-formed
Check well-formedness only.-E, --embed
Use embedded schema.-e, --err
Print errors.
SEE ALSO
xml-format(1), xmllint(1)
