LinuxCommandLibrary

xml-validate

Validate XML against schemas

TLDR

Validate against DTD

$ xml validate [file.xml]
copy
Validate against schema
$ xml validate --xsd [schema.xsd] [file.xml]
copy
Validate against RelaxNG
$ xml validate --relaxng [schema.rng] [file.xml]
copy
Validate well-formedness only
$ xml validate --well-formed [file.xml]
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community