Title: Visual Studio C# - LINQ - LINQToXML - Lesson IV
Duration: 15:03 min
Description: Using LINQ to XML we can select text in a document using OfType. This video will demonstrate how that can be done. Also, we can union two sequences of nodes
using the Union() method, and display the path to a specific nodes. In previous
examples, I showed how we can use Take() and TakeWhile() with records from a data
source. In this case, we will use TakeWhile() to display data from an xml file (data
source) while the price is less than $60.
Methodology: Using LINQ as a library to abstract away reading XML data.
Technologies: XML, LINQ, LINQtoXML.
Examples constructed: We continue our mini-examples that retrieve text from the
Books.xml file using DescendantNodes and XText. Then we union 2 sequences of
nodes. We also display the path to a node.
Key words: XML, XDocument, XElement, OfType, XText, Union, TakeWhile, DescendantNodes, Select, Any, Descendants, AnsestorsAndSelf, Reverse.