Skip to main content

parse_schema

Function parse_schema 

Source
pub fn parse_schema(xsd: &str) -> Result<Schema, SchemaError>
Expand description

Parse an XSD document into a Schema.

Resolves nothing: an xs:import or xs:include names a location, and this crate performs no I/O. Use parse_schema_with to supply the documents yourself.

ยงErrors

Returns SchemaError if the document is not a schema, breaks the structural rules XSD imposes on schemas, or uses a construct this implementation does not support.