xsd-schema 0.1.0

XML Schema (XSD 1.0/1.1) validator with PSVI and a built-in XPath 2.0 engine
Documentation
//! Instance validation against XSD schemas
//!
//! This module provides validation error types, a push-based `SchemaValidator`,
//! and supporting types for XML instance validation with spec-aligned error codes.

pub mod active_axis;
#[cfg(feature = "xsd11")]
pub mod alternatives;
#[cfg(feature = "xsd11")]
pub mod assertions;
pub mod asttree;
pub mod content;
pub mod context;
pub mod errors;
pub mod hint_loader;
pub mod identity;
pub mod identity_lexer;
pub mod identity_parser;
pub mod info;
pub mod navigator_driver;
pub mod quick_xml_driver;
pub mod runtime;
pub mod simple;
pub mod validator;

pub use errors::{
    error, error_with_path, facet_constraint_code, from_facet_error, from_value_error,
    value_error_constraint_code, ValidationError, ValidationResult,
};

#[cfg(feature = "xsd11")]
pub use info::{AssertionOutcome, InheritedAttribute};
pub use info::{
    ContentProcessing, ContentType, DefaultAttribute, ExpectedAttribute, ExpectedElement,
    NoNamespaceSchemaLocationHint, NodeIdentity, SchemaInfo, SchemaLocationHint, SchemaValidity,
    TypeSource, ValidationAttempted, ValidationFlags,
};

pub use content::{ContentValidatorState, ElementMatchInfo};

pub use context::{ElementValidationState, ValidatorState};

pub use simple::{validate_simple_type, SimpleTypeResult};

pub use hint_loader::{
    enrich_schema_set, load_hints_into_builder, EnrichmentOutcome, HintLoadResult,
};
pub use identity::{KeyFieldValue, KeySequence, KeyTable};
pub use navigator_driver::drive_navigator;
#[cfg(feature = "xsd11")]
pub use navigator_driver::drive_buffer_document;
pub use quick_xml_driver::{
    drive_quick_xml, drive_quick_xml_in, drive_quick_xml_with, drive_quick_xml_with_in,
    AttributeView, DriveError, DriveOutcome, DriveWithError, ElementStartView, EndElementInfo,
    EndOfAttributesView, NoopHandler, TextKind, ValidationEventHandler,
};
pub use runtime::ValidationRuntime;
pub use validator::{
    CollectingValidationSink, ErrorOnlySink, SchemaValidator, ValidationSink, ValidationWarning,
};