fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
815 stars 287 forks source link

XML Typeprovider, complicated samples with SampleList #235

Closed xkrt closed 10 years ago

xkrt commented 11 years ago

XmlProvider with SampleList=true works well only with simple samples, like:

type Test1 = XmlProvider<"""
    <root>
        <child a="1"></child>
        <child b="some"></child>
    </root>""", SampleList=true>

If samples just slightly more complicated I have "generateXmlType: Infered type should be record type":

type Test2 = XmlProvider<"""
    <root>
        <child a="1">
            <inner />
        </child>
        <child b="some"></child>
    </root>""", SampleList=true>
ovatsus commented 11 years ago

Thanks for the report, I'll have a look at this

ovatsus commented 10 years ago

This is now fixed, let me know if you find further problems. The XmlProvider is not as well tested as Json and Csv