F# Data


XmlRuntime

Namespace: FSharp.Data.Runtime

Static helper methods called from the generated code for working with XML

Static members

Static memberDescription
XmlRuntime.ConvertArray(...)
Signature: (xml:XmlElement * nameWithNS:string * f:Func<XmlElement,'R>) -> 'R []
Type parameters: 'R
XmlRuntime.ConvertAsName(...)
Signature: (xml:XmlElement * nameWithNS:string * f:Func<XmlElement,'R>) -> 'R option
Type parameters: 'R

Returns Some if the specified XmlElement has the specified name (otherwise None is returned). This is used when the current element can be one of multiple elements.

XmlRuntime.ConvertOptional(...)
Signature: (xml:XmlElement * nameWithNS:string * f:Func<XmlElement,'R>) -> 'R option
Type parameters: 'R
XmlRuntime.ConvertOptional2(...)
Signature: (xml:XmlElement * nameWithNS:string * f:Func<XmlElement,'R option>) -> 'R option
Type parameters: 'R
XmlRuntime.CreateRecord(...)
Signature: (nameWithNS:string * attributes:(string * '?8495) [] * elements:(string * obj) [] * cultureStr:string) -> XmlElement
Type parameters: '?8495
XmlRuntime.CreateValue(...)
Signature: (nameWithNS:string * value:obj * cultureStr:string) -> XmlElement

Creates a XElement with a scalar value and wraps it in a XmlElement

XmlRuntime.GetChild(value, nameWithNS)
Signature: (value:XmlElement * nameWithNS:string) -> XmlElement
XmlRuntime.GetJsonValue(xml)
Signature: xml:XmlElement -> IJsonDocument

Returns the contents of the element as a JsonValue

XmlRuntime.TryGetAttribute(...)
Signature: (xml:XmlElement * nameWithNS:string) -> string option
XmlRuntime.TryGetJsonValue(xml)
Signature: xml:XmlElement -> IJsonDocument option

Tries to return the contents of the element as a JsonValue

XmlRuntime.TryGetValue(xml)
Signature: xml:XmlElement -> string option
Fork me on GitHub