# FSharp.Data XmlProvider - Differences When Using Release 3.0.0-Beta for XML Schema

**URL:** <https://forums.fsharp.org/t/fsharp-data-xmlprovider-differences-when-using-release-3-0-0-beta-for-xml-schema/488>\
**Category:** General\
**Tags:** beginners\
**Created:** [September 25, 2018, 6:32pm UTC](https://forums.fsharp.org/t/fsharp-data-xmlprovider-differences-when-using-release-3-0-0-beta-for-xml-schema/488 "2018-09-25T18:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jort](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jort](https://forums.fsharp.org/u/jort)\
**Post date:** [September 25, 2018, 6:32pm UTC](https://forums.fsharp.org/t/fsharp-data-xmlprovider-differences-when-using-release-3-0-0-beta-for-xml-schema/488/1 "2018-09-25T18:32:15Z")

</div>

Hello,  
I figured out how to get the 3.0.0-Beta release of the FSharp.Data installed. It seems to accept my schema XSD files without a hiccup!  
My question is this - when using the current stable release XmlProvider with a sample file to create the type rather than a schema, I was able to reference my elements and attributes by name using dot-notation, down through multiple levels, e.g.:

type OdmAudit = XmlProvider\<…\>  
let clinData = OdmAudit.Parse(response)

…clinData.CreationDateTime

but now using the 3.0.0-Beta and creating the type by pointing to an XSD file (which uses other XSD files), I have to refer to my elements and attributes using XElements, e.g.

clinData.XElement.Attribute(XName.Get “CreationDateTime”)

Is this to be expected when using a schema vs. sample file? Will it persist once moved into the stable release?

---

<div class="post-metadata">

**Author:** ![jort](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jort](https://forums.fsharp.org/u/jort)\
**Post date:** [September 25, 2018, 7:16pm UTC](https://forums.fsharp.org/t/fsharp-data-xmlprovider-differences-when-using-release-3-0-0-beta-for-xml-schema/488/2 "2018-09-25T19:16:58Z")

</div>

Hmmm…I lied about it liking my schema, so I’m unsure why I was able to get that top-level attribute at all. Realized I had forgotten the ’ Schema = ’ qualifier n the XmlProvider statement. With that added, and pointing to the top-level XSD file in the schema files received from my vendor, I get:

test\_fsharpData\_beta.fsx(135,17): error FS3033: The type provider ‘ProviderImplementation.XmlProvider’ reported an error: Cannot read sample XSD from ‘H:/FSharp\_Projects/XmlTests/ODMSchema2015.3.0/ODM1.3.1/mdsol.xsd’:  
No suitable element definition found in the schema.

Can I use a multi-file schema that uses imports and includes, or do they need to be merged into a single XSD file?

---

<div class="post-metadata">

**Author:** ![jort](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jort](https://forums.fsharp.org/u/jort)\
**Post date:** [September 25, 2018, 8:15pm UTC](https://forums.fsharp.org/t/fsharp-data-xmlprovider-differences-when-using-release-3-0-0-beta-for-xml-schema/488/3 "2018-09-25T20:15:41Z")

</div>

Ugh. Please disregard. I discovered the ResolutionFolder parameter for the type definition, and now schema files are accepted.  
I hate being a newbie…
