AntaniXml


XsdDomain

Namespace: AntaniXml

This module provides types to represent a schema. F# data types like discriminated unions allow for very clear definitions. The W3C XML Schema specification http://www.w3.org/XML/Schema is rich and complex, so this module provides a simplified view. Nevertheless, we cover a few specific (and sometimes tricky) concepts, like nillable values, fixed values, union and list for simple types, whitespace handling etc.

Nested types and modules

TypeDescription
Facets

Facets are constraints on values of simple types

MaxOccurs
MinOccurs
Occurs
WhitespaceHandling

Whitespace handling options provide some formatting flexibility. see http://www.w3.org/TR/xmlschema11-2/#rf-whiteSpace

Wildcard

Wildcards provide extensibility. see http://www.w3.org/TR/xmlschema11-1/#Wildcards

XsdAtomicType

Enumeration of the built-in types defined by W3C XML Schema. A few ones are not supported: Notation, NmTokens, Id, Idref, Idrefs, Entity and Entities.

XsdAttribute
XsdAttributeUse
XsdComplexType
XsdContent
XsdElement
XsdName

Qualified name for XML elements and types.

XsdParticle
XsdSimpleType
XsdSimpleTypeVariety

Most simple types are atomic, but there are also list and union types. To represent their nested structure we need recursive types.

XsdType
Fork me on GitHub