Resolution: This issue has been fixed in FSharp.Data 1.1.10 (nuget). See comments below.
Update: I have the same issue using the following code:
module XmlTypeProviderIssue
open System
open FSharp.Data
type Html = XmlProvider<"""
<div>
<span>
<ul>
<li/>
</ul>
</span>
</div>""">
let html = Html.GetSample()
// Div is defined
let divWorks (div:Html.DomainTypes.Div) = ()
// Span is defined
let spanWorks (span:Html.DomainTypes.Span) = ()
// Ul is not
let ulBreaks (ul:Html.DomainTypes.Ul) = ()
// and neither is Li
let liBreaks (li:Html.DomainTypes.Li) = ()
Essentially, DomainTypes appear in intellisense, but the compiler gives an Error FS0039: The type 'Ul' is not defined (FS0039)
error, and the same thing for 'Li'.
Original answer:
I haven't got a proper answer for you, but interestingly, if you remove the <TRANSACTIONS></TRANSACTIONS>
tag from your XML, it builds fine.
That is, change this:
<TRANSACTIONS count="2">
<TRANSACTION postdate="2005-01-05" commodity="USD" memo="" id="T000000000000001557" entrydate="2013-07-03">
<SPLITS>
<SPLIT payee="P000015" reconcileflag="0" shares="-121041/100" reconciledate="" action="Withdrawal" bankid="" account="A000106" number="" value="-121041/100" memo="" id="S0001"/>
<SPLIT payee="P000015" reconcileflag="0" shares="121041/100" reconciledate="" action="" bankid="" account="A000006" number="" value="121041/100" memo="" id="S0002"/>
</SPLITS>
</TRANSACTION>
<TRANSACTION postdate="2005-01-05" commodity="USD" memo="" id="T000000000000001557" entrydate="2013-07-03">
<SPLITS>
<SPLIT payee="P000015" reconcileflag="0" shares="-121041/100" reconciledate="" action="Withdrawal" bankid="" account="A000106" number="" value="-121041/100" memo="" id="S0001"/>
<SPLIT payee="P000015" reconcileflag="0" shares="121041/100" reconciledate="" action="" bankid="" account="A000006" number="" value="121041/100" memo="" id="S0002"/>
</SPLITS>
</TRANSACTION>
</TRANSACTIONS>
to this:
<TRANSACTION postdate="2005-01-05" commodity="USD" memo="" id="T000000000000001557" entrydate="2013-07-03">
<SPLITS>
<SPLIT payee="P000015" reconcileflag="0" shares="-121041/100" reconciledate="" action="Withdrawal" bankid="" account="A000106" number="" value="-121041/100" memo="" id="S0001"/>
<SPLIT payee="P000015" reconcileflag="0" shares="121041/100" reconciledate="" action="" bankid="" account="A000006" number="" value="121041/100" memo="" id="S0002"/>
</SPLITS>
</TRANSACTION>
<TRANSACTION postdate="2005-01-05" commodity="USD" memo="" id="T000000000000001557" entrydate="2013-07-03">
<SPLITS>
<SPLIT payee="P000015" reconcileflag="0" shares="-121041/100" reconciledate="" action="Withdrawal" bankid="" account="A000106" number="" value="-121041/100" memo="" id="S0001"/>
<SPLIT payee="P000015" reconcileflag="0" shares="121041/100" reconciledate="" action="" bankid="" account="A000006" number="" value="121041/100" memo="" id="S0002"/>
</SPLITS>
</TRANSACTION>