Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: closing second form without closing first form Pin
alfie.max1524-Oct-13 7:21
alfie.max1524-Oct-13 7:21 
QuestionSQL Server Connection Pin
Member 1035350322-Oct-13 17:43
Member 1035350322-Oct-13 17:43 
AnswerRe: SQL Server Connection Pin
Ron Beyer22-Oct-13 18:06
professionalRon Beyer22-Oct-13 18:06 
AnswerRe: SQL Server Connection Pin
Nicholas Marty22-Oct-13 23:27
professionalNicholas Marty22-Oct-13 23:27 
QuestionC# Open Windows 8 Keyboard Pin
Kevin Marois22-Oct-13 13:15
professionalKevin Marois22-Oct-13 13:15 
AnswerRe: C# Open Windows 8 Keyboard Pin
BillWoodruff22-Oct-13 21:37
professionalBillWoodruff22-Oct-13 21:37 
QuestionParsing an XML File Pin
MarkB12322-Oct-13 9:18
MarkB12322-Oct-13 9:18 
AnswerRe: Parsing an XML File Pin
Richard Deeming22-Oct-13 9:38
mveRichard Deeming22-Oct-13 9:38 
You're calling .Elements("row") on the XDocument instance. The document only contains a single element, which is the root element of the XML document.

You'll need to use the Descendants method to find the rows. You'll also need to restrict the scope to the relevant USEROUT node, since the row elements under the first node don't match your expected layout.

C#
List<Callout> jobList = XDocument.Parse(responseString)
    .Descendants("USEROUT")
    .Where(el => string.Equals((string)el.Attribute("filename"), "User_out.csv", StringComparison.OrdinalIgnoreCase))
    .Descendants("row")
    .Select(item => new Callout { ... })
    .ToList();




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Parsing an XML File Pin
MarkB12322-Oct-13 10:03
MarkB12322-Oct-13 10:03 
GeneralRe: Parsing an XML File Pin
Richard Deeming22-Oct-13 10:59
mveRichard Deeming22-Oct-13 10:59 
GeneralRe: Parsing an XML File Pin
MarkB12323-Oct-13 6:49
MarkB12323-Oct-13 6:49 
QuestionHow to Get Site ID and site status in IIS 7 using Web Administration Pin
Member 1032854322-Oct-13 4:11
Member 1032854322-Oct-13 4:11 
QuestionHow to access .chm file present in zip file in C# winform application ? Pin
Pratik_P21-Oct-13 21:35
Pratik_P21-Oct-13 21:35 
AnswerRe: How to access .chm file present in zip file in C# winform application ? Pin
Marco Bertschi21-Oct-13 21:50
protectorMarco Bertschi21-Oct-13 21:50 
GeneralRe: How to access .chm file present in zip file in C# winform application ? Pin
Pratik_P21-Oct-13 22:00
Pratik_P21-Oct-13 22:00 
SuggestionRe: How to access .chm file present in zip file in C# winform application ? Pin
Eddy Vluggen21-Oct-13 22:30
professionalEddy Vluggen21-Oct-13 22:30 
AnswerRe: How to access .chm file present in zip file in C# winform application ? Pin
Marco Bertschi21-Oct-13 22:39
protectorMarco Bertschi21-Oct-13 22:39 
NewsRe: How to access .chm file present in zip file in C# winform application ? Pin
Pratik_P21-Oct-13 23:02
Pratik_P21-Oct-13 23:02 
GeneralRe: How to access .chm file present in zip file in C# winform application ? Pin
Marco Bertschi21-Oct-13 23:05
protectorMarco Bertschi21-Oct-13 23:05 
QuestionHow to get print driver version Pin
Dazed.dnc21-Oct-13 15:49
Dazed.dnc21-Oct-13 15:49 
QuestionDynamic RadiobuttonList Pin
vkEE21-Oct-13 9:42
vkEE21-Oct-13 9:42 
AnswerRe: Dynamic RadiobuttonList Pin
Richard Deeming21-Oct-13 10:25
mveRichard Deeming21-Oct-13 10:25 
AnswerRe: Dynamic RadiobuttonList Pin
CodeBlack21-Oct-13 20:25
professionalCodeBlack21-Oct-13 20:25 
AnswerRe: Dynamic RadiobuttonList Pin
GuyThiebaut22-Oct-13 2:36
professionalGuyThiebaut22-Oct-13 2:36 
QuestionHow to map results from mysql select to c# DataviewGrid Pin
coder25421-Oct-13 4:39
coder25421-Oct-13 4:39 

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.