LINQ in Action roller

Query XML file for next element

Hi - I need to query a specific name in the xml file (i.e. 'the') and then find out if the next element is 'true' or 'false'. So each only exists once in the file and I want to retrun if it's true or false. Could someone please help with the query below. Thanks, Paul the true of false and false var query = from c in xdoc.Elements("wordlist").Elements("word").Elements("name") where c.Value == "the" select c. ?How to get value of next element ? I need to know if it's true or false. sorry original post Read More...
Published Wednesday, May 28, 2008 1:04 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication