user3410575
user3410575

Reputation: 427

F# XML Type Provider - Using an XSD

I am probably missing the boat here, but how can you build a reusable tool that uses the XML Type Provider if the XML you are giving to XMLProvider doesn't have all of the possible elements? In other words, is there any way to use an XSD? I know I could try to generate sample XML from an XSD but I'm wondering if I am approaching this incorrectly.

Upvotes: 15

Views: 2279

Answers (1)

Brains
Brains

Reputation: 664

FSharp.Data.Xsd augments the XML type provider of FSharp.Data with schema support.
https://fsprojects.github.io/FSharp.Data.Xsd/

Upvotes: 1

Related Questions