Saving spaces with XmlProvider.Load

I am using the FSharp.Data library, as I can specify the following option:

LoadOptions.PreserveWhitespace

using the Load method? I tried passing it, but the compiler complains that there is no such overload.

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

fi is just a file stream object.

+4
source share

Source: https://habr.com/ru/post/1664201/


All Articles