May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Xml literals provide an alternative syntax for LINQ to Xml queries in Visual Basic code. Let’s retake the first Xml document used in the “System.Xml.Linq Namespace” section, which looks like the following but with a slight modification:

There is a Person element that we want to be excluded. The goal is querying all Contact elements whose age is greater than 40. Instead of recurring to the classical syntax, you can write the following code:

The preceding code uses new symbols for querying documents known as Xml Axis ...
Read now
Unlock full access