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 307 | Next

Scott Klein

"Professional LINQ"

The second XML literal is also modified, adding the necessary components to the
embedded query to access the attribute as well.
Dim employee As XElement = _

Scott
Chris
Bill

Dim nameTypes As XElement = _

<%= From name In employee. _
Select ><%= name.@empID %> _
%>

Me.TextBox1.Text = nameTypes.ToString
The following results when this code is executed:

Scott
Chris
Bill
Yes, this example puts the attribute back where it came from, but the purpose of this example is to illustrate
how to access attributes and how you can utilize query expressions within your XML literals to
manipulate XML.
These examples should give you a good idea of how to access XML using XML literals and
query expressions.
Loading XML
Loading XML is quite easy. You??™ll see just how easy in a minute.


Pages:
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6