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

Scott Klein

"Professional LINQ"


Snohomish
WA

Mr. SciFi
05/14/2002
M


Joe

222 Main St.
Easley
SC

All Things Bleeding Edge
07/22/2004
M


How does the compiler create objects from XML literals? The answer is simple, really. The Visual Basic
compiler translates XML literals into the equivalent LINQ to XML constructors, which are then used to
build the LINQ to XML object.
129
Part II: LINQ to XML
Populating Trees from Text
Populating XML trees from text can be accomplished a number of ways, and you saw a couple of them
in the last chapter. The easiest method is to use the Parse() method of the XElement class. This method
loads an XElement object from an XML string.
For example, the following code creates a string containing XML, parsing the string into an
XElement object:
XElement employees = XElement.


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