Search code examples
xmlf#type-providersf#-data

Data XML provider loading SOA Mortality tables


I cannot seem to load the mortality data form the xml files hosted on the SOA website at http://mort.soa.org/

#r "../packages/FSharp.Data.1.1.10/lib/net40/FSharp.Data.dll"
#r "System.Xml.Linq.dll"
open FSharp.Data
type mortab = XmlProvider<"http://mort.soa.org/data/t1.xml">

let mtab = mortab.Load("http://mort.soa.org/data/t1.xml")

let rates = mtab.Table.Values.Axis

It does not seem to be possible to access data within the Axis element. An option to use a method GetIes is returned from intellisense, and this reports an error 'The Name of a provided type was null or empty'.

Is there any workaround for this?


Solution

  • Could you try again with 2.0 prerelease? I just tested your snippet and it worked