Skip to main content

Module model

Module model 

Source
Expand description

The schema model: what an .xsd says, in a form a validator can walk.

This is deliberately narrower than the XSD specification. It covers the constructs that appear in real schemas — elements, sequences, choices, cardinality, attributes, and the simple-type restriction facets — and omits the ones that multiply surface without adding validating power until the core is correct.

Re-exports§

pub use crate::datatype::Datatype as BuiltIn;

Structs§

AttributeDecl
An attribute declaration.
Facets
Constraints narrowing a simple type.
Identity
An xs:unique, xs:key or xs:keyref declaration.
Occurs
How many times a particle may occur.
Particle
An element declaration within a content model.
Schema
A parsed schema.
SimpleType
A simple type: a built-in, optionally restricted, listed or united.
Wildcard
An xs:any or xs:anyAttribute wildcard.

Enums§

Content
What may appear inside an element.
IdentityKind
Which kind of identity constraint a declaration is.
NamespaceConstraint
The namespace attribute of a wildcard.
ProcessContents
The processContents attribute of a wildcard.
Variety
Which of XSD’s three simple-type varieties this is.