Sorry if this question is exceptionally simple or noobish. I'm still pretty new to C# and am currently trying to learn how to work with XML files. I have run into a bit of an issue that I could certainly use some help with. I have created a simple little XML file (Users.XML) below:\[code\] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <users> <user> <firstname>Might</firstname> <lastname>Guy</lastname> <username>SomeUser</username> </user> <user> <firstname>Bob</firstname> <lastname>Marley</lastname> <username>BobMarley</username> </user> </users>\[/code\]What I want to do is find a way to query that file to get specific information about a user. First name, last name, doesn't matter. Now, after poking around I found what many folks considered to be one of the better ways is:\[code\]string firstName;var data = http://stackoverflow.com/questions/14446452/from item in doc.Descendants("users") where item.Element("user").Element("username").Value =http://stackoverflow.com/questions/14446452/="SomeUser" select new { fname = item.Element("user").Element("firstname").Value };//Checking to see if anything was found. I know this isn't necessary to pull//the information. I'm just doing this so I can know to throw an error to the//screen if none is found if (data.Count() > 0)//Now pull the data. Should only be 1 hit foreach (var p in data) { firstName = p.ToString(); } else MessageBox.Show("No such user found");\[/code\]Now, this example code does give me the first name of the user. BUT, the actual content of firstName is "fname = Might". All I want it to contain is "Might". Of course, if I drop the "fname =" from the select then it throws an error about not naming the field, so I sort of hit a wall. I tried googling for a solution, but since I'm not sure WHAT I'm googling it hasn't brought me much luck.So I have 3 questions. If it would be easier just to point me in the direction of a tutorial that contains the information, I would also be thrilled with that! Not just looking for an easy fix, looking to figure out why this is how it is since I'm trying to learn XML and not just complete a task.-A) Is it possible using this method to simply have firstName contain "Might", and not "fname = Might". If so, how? If not, is there another way to do it that would?-B) Why do I need the "fname ="? Is this something to do with LINQ, or is it part of something else entirely? Besides LINQ/XML stuff, I haven't been able to find examples of this anywhere else yet so I haven't been able to get a more detailed explanation on why it is like it is.-C) Is this an acceptable method to go about what I'm trying to do in the example, aka query an XML file for a specific piece of information based on some field (the username, in this case)? If not, could you point me towards whatever method might be better?