AntaniXml


LexicalMappings

Namespace: AntaniXml

This module contains whitespace handling and also parse and format functions for simple datatypes. In W3C terms, parse is a map from the lexical space to the value space of a given datatype. Usually we implement it relying on System.XmlConvert. The format function instead maps values to lexical representations. It returns a string list because the same value may have multiple representations (e.g. a plus sign may optionally prefix a number). Note: this module is not complete yet, furthermore its design may change in future versions.

Nested types and modules

TypeDescription
LexMap<'a>

values may have multiple representations

Functions and values

Function or valueDescription
collapseWhitespace x
Signature: x:string -> string
isCollapsed x
Signature: x:string -> bool
isNormalized x
Signature: x:string -> bool
replaceWhitespace x
Signature: x:string -> string
XsdBool
Signature: LexMap<bool>
XsdDate
Signature: LexMap<DateTime>
XsdDateTime
Signature: LexMap<DateTime>
XsdDecimal
Signature: LexMap<decimal>
XsdDouble
Signature: LexMap<float>
XsdDuration
Signature: LexMap<TimeSpan>
XsdFloat
Signature: LexMap<float32>
XsdGDay
Signature: LexMap<DateTime>
XsdGMonth
Signature: LexMap<DateTime>
XsdGMonthDay
Signature: LexMap<DateTime>
XsdGYear
Signature: LexMap<DateTime>
XsdGYearMonth
Signature: LexMap<DateTime>
XsdHexBinary
Signature: LexMap<string>
XsdInt
Signature: LexMap<int>
XsdLong
Signature: LexMap<int64>
XsdString
Signature: LexMap<string>
XsdTime
Signature: LexMap<DateTime>
XsdUInt
Signature: LexMap<uint32>
XsdULong
Signature: LexMap<uint64>
Fork me on GitHub