May 2010
Intermediate to advanced
1272 pages
61h 18m
English
With embedded expressions you can include local variables or perform dynamic queries within Xml literals. For example, let’s look again at the first example about Xml literals, where an Xml document contains a couple of contacts. Imagine you want to generate a contact starting from some variables (that you could populate at runtime with different values) instead of hard-coding the last name, first name, and age. This can be accomplished as follows:

Although the second contact in the list is equal to the first example, the first contact is generated with embedded expressions. You create an embedded expression ...
Read now
Unlock full access