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.
source
share