Expand description
§sdc4-validator
A high-performance XML Schema validator with Semantic Data Charter (SDC4) support.
§Overview
sdc4-validator provides fast and memory-efficient validation of XML documents
against XML Schema definitions with specialized support for healthcare data quality
management through the Semantic Data Charter specification.
Unlike traditional validators that reject invalid data, sdc4-validator implements
a “quarantine-and-tag” pattern that preserves problematic data while injecting
ISO 21090-based ExceptionalValue elements.
§Quick Start (Coming in v4.0.0)
use sdc4_validator::{Validator, ValidationOptions};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create validator with schema
let validator = Validator::from_file("schema.xsd")?;
// Validate XML document
let xml = std::fs::read_to_string("data.xml")?;
let result = validator.validate(&xml)?;
if result.is_valid() {
println!("Document is valid!");
} else {
println!("Validation errors: {:?}", result.errors());
}
Ok(())
}§Features
- High Performance: Native Rust implementation for optimal speed
- SDC4 Compliance: Full support for Semantic Data Charter 4.x specification
- ExceptionalValue Support: Automatic injection of ISO 21090-based exceptional values
- Recovery Mode: Tag and preserve invalid data rather than rejecting it
§Status
PLACEHOLDER RELEASE - NOT FUNCTIONAL
This is a v0.1.0 placeholder to reserve the package name on crates.io. The full implementation is scheduled for Q2 2026 and will be released as v4.0.0.
For production use today, please see:
- sdcvalidator (Python) - Reference implementation
- @semanticdatacharter/validator - JavaScript/TypeScript
This library is currently in the planning phase with implementation scheduled for Q2 2026.
Functions§
- placeholder
Deprecated - Placeholder function - do not use.
- placeholder_
info - Returns information about this placeholder release.