Preserving whitespace with XmlProvider.Load

93 views Asked by At

I'm using the FSharp.Data library, how can I specify the following option:

LoadOptions.PreserveWhitespace

with the Load method? I've tried passing it in but the compiler complains there's no such overload.

type Detailed = XmlProvider<"./samples/sample.xml">
let test = Detailed.Load(fi, LoadOptions.PreserveWhitespace)

fi is just a file stream object.

0

There are 0 answers