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

Scott Klein

"Professional LINQ"

NET
="1">
<<%= empName %>>
Scott


Me.Textbox1.Text = emp.ToString
Run the application and click the button. The text box on the form will be populated with the
following XML:


Scott


Notice all of the whitespace to the left of ??????Scott??™??™ and to the left of the closing tag.
The output is like this because the inner element, , contains significant whitespace
and the output text, while the outer element, , contains insignificant whitespace.
So, you are probably asking yourself, what is the difference between ??????significant??™??™ and ??????insignificant??™??™
whitespace? Whitespace in XML literals is considered significant when:
??‘ It is in an attribute value.
??‘ It is part of an element??™s text content.
??‘ It is in an embedded expression for an element??™s text content.
You can add the xml:space attribute in the XML element literal, but it won??™t change how the compiler
handles the whitespace.


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