LINQ-TO-XML not returning all value
- by mmcglynn
I am trying to get all values in the select. using item.Count shows the correct number of values, but only one .Value is returned from the loop. Why?
Dim fooXML As XDocument = XDocument.Load(Server.MapPath("xml/foo.xml"))
Dim query = _
From c In fooXML...<foobaryear> _
Select c...<event>
For Each item In query
Response.Write(item.Value)
Next