SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 219 | Next

Scott Klein

"Professional LINQ"

What makes this possible is that the literal XML syntax represents the actual objects of LINQ
to XML. The benefit of this is that your XML code is easier to create, and your code is easier to read
because it has the same structure as the resulting XML.
An additional benefit of XML literals is that Visual Basic .NET compiles them into LNQ to XML objects,
providing a familiar LINQ object model for creating and manipulating XML.
XML can be created in Visual Basic by using XML literals directly in the VB code. You create LINQ to
XML objects simply by typing XML code directly into Visual Basic or by pasting existing XML into your
code. The following creates a single node:
Dim emp As XElement =
Here??™s the result of this code:

You can also specify elements and their corresponding values:
Dim emp As XElement = Scott
Obviously, the following XML is produced:
Scott
One of the things that Visual Basic .NET developers have at their disposal is ??????embedded expressions.??™??™
Embedded expressions let you create XML literals that contain expressions.


Pages:
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6