You'd have to use proper XPath in this case, and your LINQ query gets replaced by a for-each loop. To get the descendants you'll need the SelectNodes() method of XmlDocument.
vb Code:
For Each xn As XmlNode in document.SelectNodes("/root/parent/question") 'do an xn.SelectSingleNode("SectionName") and get its .value or .innertext Next




Reply With Quote