C #
var xArr = XDocument.Load(FileName)
.Element("dataWorkers")
.Elements("worker");
int i = 0;
foreach (XElement item in xArr)
F #
let xArr = (((XDocument.Load fileName).Element <| XName.Get "Dict").Element <| XName.Get "dictNode")
for x in xArr do
()
Error
The type 'XElement' is not a type whose values can be enumerated with this syntax, i.e. is not compatible with either seq<_>, IEnumerable<_> or IEnumerable and does not have a GetEnumerator method
почему? Я не могу найти свою ошибку.