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

Scott Klein

"Professional LINQ"


Accessing XML
Creating XML is one thing, but accessing it is another, and this section shows you how to do that in
Visual Basic. Navigating XML structures in LINQ to XML is quite easy in Visual Basic. To illustrate, add
another button to your form and place the following code in its click event:
Dim employee As XElement = _


Geek
Scott
L
Klein
ScottKlein@SqlXml.com

111 Main St.
Wellington
FL
33414
185
Part II: LINQ to XML



Me.TextBox1.Text = employee....Value
Run the project and click the button. The text box should display the following value:
Wellington
Accessing element and attribute values is done through XML axis properties, which provide the capability
to navigate XML structures. These properties use a special syntax that helps access any element and
attribute by specifying XML names within your XML document.


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