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