Encode Module
Provides functions for encoding values to XML nodes. All primitives format invariantly. Text values carry no type marker: XML has no native boolean, date, or null literal, so decoders parse the same lexical forms back.
Functions and values
| Function or value |
Description
|
Encodes null as an empty text node. XML has no null literal; to emit xsi:nil, build an element and set the nil attribute on it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
dateTimeExactWith format provider value
Parameters:
string
provider : IFormatProvider
value : DateTime
Returns: XmlNode
Modifiers: inline |
|
Full Usage:
dateTimeOffset value
Parameters:
DateTimeOffset
Returns: XmlNode
Modifiers: inline |
|
Full Usage:
dateTimeOffsetExact format value
Parameters:
string
value : DateTimeOffset
Returns: XmlNode
Modifiers: inline |
|
Full Usage:
dateTimeOffsetExactWith format provider value
Parameters:
string
provider : IFormatProvider
value : DateTimeOffset
Returns: XmlNode
Modifiers: inline |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
map (values, encoder)
Parameters:
IDictionary<'Key, 'Value>
encoder : MapEntryEncoder<'Key, 'Value>
Returns: XmlNode seq
Modifiers: inline Type parameters: 'Key, 'Value |
Encodes each map entry as a child element named by the entry encoder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
timeSpanExactWith format provider value
Parameters:
string
provider : IFormatProvider
value : TimeSpan
Returns: XmlNode
Modifiers: inline |
|
|
|
|
|
|
|
JDeck