read specific line this xml?

7331

New Member
Is there anyway to read the specific line in this xml?http://i.stack.imgur.com/hDPIg.jpg\[code\] var guide = from query in dataFeed.Descendants("MaxPayne3") select new NewGamesClass { GameTitle = (string)query.Element("Title"), Gamedescription = (string)query.Element("Description"), GameGuide = (string)query.Element("Guide") }; GuidesListBox.ItemsSource = guide.Where(ngc => ngc.GameGuide.StartsWith("See 'Payne In The Ass'")).Take(1);\[/code\]this will show all guides in the xml.This Work: \[code\] var guide = from query in dataFeed.Descendants("MaxPayne3") select new NewGamesClass { GameTitle = (string)query.Element("Title"), Gamedescription = (string)query.Element("Description"), GameGuide = (string)query.Element("Guide") }; //GuidesListBox.ItemsSource = guide.Where(ngc => ngc.GameGuide.StartsWith("See 'Payne In The Ass'")).Take(1); GuidesListBox.ItemsSource = guide.Where(ngc => ngc.GameTitle.StartsWith("Serious"));\[/code\]So start with whatever is the first child in the XML.
 
Back
Top