Looked at these for a couple solutions--but nothing works
The type 'XmlProvider' is not defined
F# Data New type provider library
F# Data: XML Type Provider
open FSharp.Data
type XMLcountries = XmlProvider<"http://api.worldbank.org/country">
let sampleCountries = XMLcountries.GetSample()
let sampleCountries' = XMLcountries.Load("http://api.worldbank.org/country")
When using the interactive window, I get F# error FS0039: The type 'XmlProvider' is not defined. Is there a better package/library to use XML provider(and JSON too).
I have updated FSharp.Data to version 2.3.1
I added open FSharp.Data.TypeProviders to see if that would work. Still same error.
This is extremely frustrating.
Are you sure you have looked at F# Data: XML Type Provider? Because at the very beginning it says:
#r "../../../bin/FSharp.Data.dll"
#r "System.Xml.Linq.dll"
open FSharp.Data
So you have a couple of options, if you don't want to install FSlab, the second one is the easiest for you. You obviously have to adjust the path to match your environment.
#load @"..\..\FSLAB\packages\FSLAB\FsLab.fsx"
#r @"..\..\FSLAB\packages\FSharp.Data\lib\net40\FSharp.Data.dll"