XLinq question
-
My apologies if something like this has already been asked and answered; I did some Google searching, as well searching on this site, and didn't find it, so here goes. I'm new to the world of .NET 3.5 and Linq. What I have are 1 + n xml files. The first Xml file looks sort of like this:
<files>
<file id="1" name="(some guid)"/>
<file id="2" name="(some guid)"/>
</files>There are then files in the same directory, whose name matches the guid plus .xml, like so:
<file id="1">
<prop1>Value 1</prop1>
<prop1>Value 1</prop1>
<prop1>Value 1</prop1>
</file>What I'd like to be able to do is this: for each file listed in the first xml blob, I want to create an object based on the values in each of the other xml files that look like the 2nd blob, and return that as an IEnumerable<Thing>. Does anybody know where I can find an example of how to do this? Thanks in advance.
Jamie Nordmeyer
Portland, Oregon, USA
http://www.feralcodemonkies.com