2025-03-14 21:59:59 -06:00
|
|
|
# xml validate
|
|
|
|
|
|
|
|
|
|
> Validate XML documents.
|
|
|
|
|
> More information: <https://xmlstar.sourceforge.net/docs.php>.
|
|
|
|
|
|
|
|
|
|
- Validate one or more XML documents for well-formedness only:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xml validate {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Validate one or more XML documents against a Document Type Definition (DTD):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Validate one or more XML documents against an XML Schema Definition (XSD):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xml validate --xsd {{path/to/schema.xsd}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Validate one or more XML documents against a Relax NG schema (RNG):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xml validate --relaxng {{path/to/schema.rng}} {{path/to/input1.xml|URI1 path/to/input2.xml|URI2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`xml validate --help`
|