Hello.
lets say that I've got this XML:
<items>
<item name="thumb">
<downloadStream>test1</downloadStream>
<downloadStream>test2</downloadStream>
<downloadStream>test3</downloadStream>
</item>
<item name="photo">
<downloadStream>test5</downloadStream>
<downloadStream>test6</downloadStream>
<downloadStream>test7</downloadStream>
</item>
</items>
I'm trying to write a LINQ statement which will convert this to the following strings:
{ "thumb test1",
"thumb test2",
"thumb test3",
"photo test5",
"photo test6",
"photo test7", }
In other words, it appends the attribute from the parent node to the inner-string of each child node.
Is their a way that I can use one LINQ query to do something like this? I can find a few ways to break it up into multiple steps, but I have a feeling that their is an easier way.
Thanks!