Documentation
xmlschema — XSD 1.0 Validator
Rigorous W3C XML Schema validation engine built for enterprise compliance and high assurance pipelines.
Installation
Add xmlschema to your dependencies:
[dependencies]
xmlschema = "0.0.10"
Validation Example
Validate XML files against standard XSD schemas:
use Schema;
let xsd = read_to_string?;
let schema = parse?;
let xml = read_to_string?;
match schema.validate
Supported Types
- Simple types: string, integer, decimal, boolean, dateTime, date, anyURI
- Complex types: sequences, choices, all groups
- Facets: minInclusive, maxInclusive, length, minLength, maxLength, pattern (regex), enumeration