A python tool used to validate STIX v1.0 instance documents. For more information about the Structured Thread Information eXpression, see http://stix.mitre.org.
The STIX Document Validator has the following dependencies:
- Python v2.7 http://python.org/download
- lxml >= v3.2.0 http://lxml.de/index.html#download
- libxml2 >= v2.9.1 http://www.xmlsoft.org/downloads.html
NOTE: Older versions of libxml2 do not work properly and may result in undesirable behavior.
To see what version of libxml2 you have installed, execute the xml2-config --version
command
and make sure you are running at least v2.9.1.
The STIX Document Validator can validate a STIX v1.0 instance document against STIX v1.0 schemas found locally or referenced remotely through the schemaLocation attribute. It can also perform some 'best practice' guidance checks.
Validate against local schemas:
python sdv.py --input-file <stix_document.xml> --schema-dir schema
Validate using schemaLocation:
python sdv.py --input-file <stix_document.xml> --use-schemaloc
Validate a directory of STIX documents:
python sdv.py --input-dir <stix_dir> --schema-dir schema
Check 'best practice' guidance
python sdv.py --input-file <stix_document.xml> --schema-dir schema --best-practices
The STIX Document Validator bundles a schema directory with it, which includes all STIX v1.0 schema files. If an instance document uses constructs or languages defined by other schemas a user must point the STIX Document Validator at those schemas in order to validate.
BY USING THE STIX DOCUMENT VALIDATOR, YOU SIGNIFY YOUR ACCEPTANCE OF THE TERMS AND CONDITIONS OF USE. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT USE THE STIX DOCUMENT VALIDATOR.
For more information, please refer to the LICENSE.txt file