linq to xml query returning a list of all child elements
- by Xience
I have got an xml document which looks something like this.
<Root>
<Info>....</Info>
<Info>....</Info>
<response>....</response>
<warning>....</warning>
<Info>....</Info>
</Root>
How can i write a linqToXML query so that it returns me an IEnumerable containing each child element, in this case all five child elements of , so that i could iterate over them.
The order of child elements is not definite, neither is number of times the may appear.
Thanks in advance