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

Scott Klein

"Professional LINQ"


Dim empInfo As String
empInfo = "Scott@@ta
"
Dim emp As XElement = XElement.Parse(empInfo, LoadOptions.None)
Me.TextBox1.Text = emp.ToString
Here are the results of executing this code:


Scott


The optional parameter is the LoadOptions enumeration, which sets one of four load options for loading
and parsing XML:
??‘ None??”No options are specified.
??‘ PreserveWhitespace??”Preserve insignificant whitespace during the parsing
of the XML.
??‘ SetBaseUri??”Requests the base URI information from the XmlReader,making it available through
the BaseUri property.
??‘ SetLineInfo??”Requests the line information from the XmlReader, making it available through
XObject properties.
The following example illustrates the use of the PreserveWhitespace load option. Modify the code from
the previous example as follows:
Dim empInfo As String
empInfo = "Scott@@ta
"
Dim emp As XElement = XElement.


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