2021-08-16 08:23:55 -04:00
|
|
|
# xml validate
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2021-08-15 14:38:24 -04:00
|
|
|
> Validate XML documents.
|
2024-10-12 10:02:00 +02:00
|
|
|
> More information: <https://xmlstar.sourceforge.net/docs.php>.
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2021-08-23 21:20:17 -04:00
|
|
|
- Validate one or more XML documents for well-formedness only:
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2021-08-20 21:33:37 -04:00
|
|
|
`xml validate {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
2021-08-14 21:49:20 -04:00
|
|
|
|
2021-08-23 21:20:17 -04:00
|
|
|
- Validate one or more XML documents against a Document Type Definition (DTD):
|
2021-08-14 21:49:20 -04:00
|
|
|
|
|
|
|
`xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
|
|
|
|
2021-08-23 21:20:17 -04:00
|
|
|
- Validate one or more XML documents against an XML Schema Definition (XSD):
|
2021-08-14 21:49:20 -04:00
|
|
|
|
|
|
|
`xml validate --xsd {{path/to/schema.xsd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
|
|
|
|
2021-08-23 21:20:17 -04:00
|
|
|
- Validate one or more XML documents against a Relax NG schema (RNG):
|
2021-08-14 21:49:20 -04:00
|
|
|
|
|
|
|
`xml validate --relaxng {{path/to/schema.rng}} {{path/to/input1.xml|URI}} {{input2.xml ...}}`
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2021-08-14 18:17:52 -04:00
|
|
|
|
|
|
|
`xml validate --help`
|