type Project = StructuredXml<"project.xml">
...
let projectDocument = Project(filename="project.xml")
let projectNode = projectDocument.Root.GetProjects() |> Seq.head
let title = projectNode.GetTitles() |> Seq.head
<OrderContainer>
<Backgrounds >
<Background>
<Title>Purple Stars</Title>
</Background>
</Backgrounds>
<Project >
<Title>Avery</Title>
</Project>
</OrderContainer>
Thanks. I'll try to fix this
Hmm, yes, this is a limiatation of the type provider.
It does not unify elements that appear repeatedly in a different part of the structure. I’m not entirely sure what is the best thing to do – it could either treat them as different (and just add some index to avoid the name clash) or perhaps it should unify them (which would make good sense i.e. for HTML-like documents).
T.