Skip to content

Instantly share code, notes, and snippets.

@waf
Created October 11, 2013 00:45
Show Gist options
  • Save waf/6927966 to your computer and use it in GitHub Desktop.
Save waf/6927966 to your computer and use it in GitHub Desktop.
F# MSDN hackery
// Learn more about F# at http://fsharp.net
// See the 'F# Tutorial' project for more help.
open FSharp.Data
open System.Net
type msdnSchema = JsonProvider<"./SampleJson/TechNet.json">
let downloader = new WebClient()
let toc = downloader.DownloadString("http://technet.microsoft.com/en-us/library/bb510741.aspx?toc=1")
let technet =
msdnSchema.Parse(toc)
|> Seq.filter (fun node -> node.ExtendedAttributes.DataTochassubtree)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment