AntaniXml


XsdFactory

Namespace: AntaniXml

This module is in charge of parsing xsd and creating models according to XsdDomain data types. Parsing xsd is a complex task, and for this we rely on the .NET BCL library (namespace System.Xml.Schema). Converting the Schema Object Model (SOM) provided by the BCL library into our own simpler model allows decoupling of parsing xsd and building generators.

Nested types and modules

TypeDescription
ValidationResult

Functions and values

Function or valueDescription
createSchemaSet xmlReader
Signature: xmlReader:XmlReader -> XmlSchemaSet
emptyFacets
Signature: Facets
memoize f
Signature: f:('a -> 'b) -> 'a -> 'b
Type parameters: 'a, 'b

naive, but we are not concerned with thread safety nor memory footprint

ofType sequence
Signature: sequence:IEnumerable -> IEnumerable<'a>
Type parameters: 'a

just an alias for System.Linq.Enumerable.OfType

validate xmlSchemaSet inputXml
Signature: xmlSchemaSet:XmlSchemaSet -> inputXml:string -> ValidationResult
validateElement xmlSchemaSet element
Signature: xmlSchemaSet:XmlSchemaSet -> element:XElement -> ValidationResult
xmlSchemaSet xsdText
Signature: xsdText:string -> XmlSchemaSet
xmlSchemaSetFromUri schemaUri
Signature: schemaUri:string -> XmlSchemaSet
xsdElement
Signature: XmlSchemaElement -> (XmlQualifiedName -> XmlSchemaElement) -> (XmlSchemaElement -> XmlSchemaElement list) -> (XmlSchemaElement -> bool) -> XsdElement
xsdName x
Signature: x:XmlQualifiedName -> XsdName
Fork me on GitHub