File Structure Validation
v5.24.0
Search this version
XML schema validation
File Structure Validation lets you enforce XML Schema (XSD) validation on XML files. If a file does not conform to the specified schema, it fails validation, and the configured Validation Effect on Final Result determines the outcome of the scan.

A valid XML file that conforms to the schema

An invalid XML file that fails schema validation

Specify the schema through the REST API
When you submit a file through the REST API (POST /file), you can choose which XML schema File Structure Validation validates the file against. Pass the schema file name in the engines-metadata request header:
{
"fsv": {
"schema_validation.validate_against_schema.schema_name": "<schema file name>"
}
}
Parameter | Description |
|---|---|
| File name of the XSD to validate against, for example |
Last updated on
Was this page helpful?
Next to read:
JSON schema validationFile Structure Validation
File Structure Validation