Sunday, May 12, 2013

F# Parsing XML, aiming to get to Type Providers

For a new project, I've started using some F# again. Type providers are brand new since last I used the language, so I thought I'd start out by writing my own type provider to deal with some xml apis I'll be using.

One of things I missed from F# was sequence generators. Here's a sequence generator that turns XML into a slightly different form, hopefully easier to consume from a type provider:

Here's the output: