I have a xml file, on this file i need to get multiples Description values. My problem is that tag is the same for the all values so when i invoke the method always get the first value. Example, Take a look at picture for more details.
but i need to get all descriptions like the previous imagen though a loop (for each activity, for example) and for that, my condition or key is “cbc: ID”. For example, if exist three ID values (ID: 1, ID: 2 and ID: 3) i need to get the three description values from “cbc: Description”.
Its about LINQ
Where Method got a defined Function/Lambda that is defining what to do. The Syntax Function (e) is defining this and e is a variable name for this defined function representing the item that is processed in the function.
To get more information about this topic have a look here: LINQ Method Syntax