Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
AnswerRe: use of information from a previous form [modified] Pin
sanforjackass20-Jan-10 11:11
sanforjackass20-Jan-10 11:11 
AnswerRe: use of information from a previous form Pin
DaveyM6920-Jan-10 11:05
professionalDaveyM6920-Jan-10 11:05 
QuestionProblem with connection to Socket Pin
gottimukkala20-Jan-10 10:22
gottimukkala20-Jan-10 10:22 
AnswerRe: Problem with connection to Socket Pin
Rozis20-Jan-10 13:02
Rozis20-Jan-10 13:02 
AnswerRe: Problem with connection to Socket Pin
Abhinav S20-Jan-10 17:51
Abhinav S20-Jan-10 17:51 
Questionreading message by pop3 Pin
mohd_mogaly20-Jan-10 10:20
mohd_mogaly20-Jan-10 10:20 
AnswerRe: reading message by pop3 Pin
Rozis20-Jan-10 13:55
Rozis20-Jan-10 13:55 
QuestionXLinq question Pin
Jamie Nordmeyer20-Jan-10 10:18
Jamie Nordmeyer20-Jan-10 10:18 
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

QuestionConnecting windows application to a web server. [modified] Pin
amnewone20-Jan-10 7:58
amnewone20-Jan-10 7:58 
QuestionOpening a file Pin
Darrall20-Jan-10 7:03
Darrall20-Jan-10 7:03 
AnswerRe: Opening a file Pin
loyal ginger20-Jan-10 7:29
loyal ginger20-Jan-10 7:29 
GeneralRe: Opening a file Pin
Darrall20-Jan-10 7:36
Darrall20-Jan-10 7:36 
AnswerRe: Opening a file Pin
John Whitmire20-Jan-10 7:33
professionalJohn Whitmire20-Jan-10 7:33 
GeneralRe: Opening a file Pin
Darrall20-Jan-10 7:37
Darrall20-Jan-10 7:37 
AnswerRe: Opening a file Pin
Dan Mos20-Jan-10 7:33
Dan Mos20-Jan-10 7:33 
GeneralRe: Opening a file Pin
Darrall20-Jan-10 7:43
Darrall20-Jan-10 7:43 
AnswerRe: Opening a file Pin
Abhinav S20-Jan-10 17:55
Abhinav S20-Jan-10 17:55 
QuestionInsert image Pin
farokhian20-Jan-10 7:02
farokhian20-Jan-10 7:02 
AnswerRe: Insert image Pin
loyal ginger20-Jan-10 7:31
loyal ginger20-Jan-10 7:31 
GeneralRe: Insert image Pin
farokhian20-Jan-10 9:30
farokhian20-Jan-10 9:30 
GeneralRe: Insert image Pin
loyal ginger20-Jan-10 10:09
loyal ginger20-Jan-10 10:09 
QuestionConnection to SQL Server on the remote computer Pin
Ievgeniia Zhovtobryukh20-Jan-10 6:09
Ievgeniia Zhovtobryukh20-Jan-10 6:09 
QuestionCreating Dataset from Xml Pin
Fayu20-Jan-10 4:50
Fayu20-Jan-10 4:50 
AnswerRe: Creating Dataset from Xml Pin
Ennis Ray Lynch, Jr.20-Jan-10 10:17
Ennis Ray Lynch, Jr.20-Jan-10 10:17 
AnswerRe: Creating Dataset from Xml Pin
Fayu21-Jan-10 3:14
Fayu21-Jan-10 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.