Expand description
XSD parser built on quick_xml streaming events.
The parser drives a simple recursive-descent state machine over the flat
event stream produced by quick_xml::Reader. No DOM tree is built; each
recognised element is accumulated directly into the Schema being
constructed.
§Supported constructs
| XSD construct | Rust mapping |
|---|---|
<xs:element name="…" type="…"/> (top-level) | Element |
<xs:simpleType> + <xs:restriction> | SimpleType / Restriction |
Facets: enumeration, pattern, minLength, maxLength, minInclusive, maxInclusive, totalDigits, fractionDigits | Facet variants |
<xs:complexType> + <xs:sequence> | ComplexContent::Sequence |
<xs:complexType> + <xs:choice> | ComplexContent::Choice |
<xs:complexType> + <xs:simpleContent><xs:extension> | ComplexContent::SimpleContent |
<xs:complexType> + <xs:any> | ComplexContent::Any |
Enums§
- Parse
Error - Errors that can occur while parsing an XSD file.