2010 | OriginalPaper | Chapter
LINQ to XML Operators
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
At this point, we are deep into LINQ to XML, and you are probably starting to wonder, ‘When are we going to get to the part about queries?’ If so, then we say, ‘Hold on to your null reference there, Shortcake, you have been seeing them.’ Throughout the previous chapter, we were performing LINQ to XML queries whether they were merely returning all the child elements of an element or obtaining all of the ancestors of a node. Do you remember seeing the XContainer.Elements method? Do you recall any examples where we called the XContainer.Elements method? If so, you saw a LINQ to XML query. As evidence yet again to the seamless integration of LINQ queries into the language, it is sometimes easy to overlook that you are performing a query.