xml:space in resource file of c# winform -


i have windows form application in have resource file(.resx)here write error messages below

 <data name="link_name" xml:space="preserve">     <value>the link name must not blank , not greater 255 symbols.</value>   </data> 

here understood name name of resource needs accessed , value value of resource did not xml:space="preserve" ? have 1 more option there default

xml:space="preserve" makes whitespaces @ begin of tag not removed. (and if place more 1 whitespace together)

example:

<data name="link_name" xml:space="preserve">    <value>      link name must not blank , not greater 255 symbols.</value> </data> 

now value be:

"      link name must not blank , not greater 255 symbols." 

if xml:space not set:

<data name="link_name">    <value>      link name must not blank , not greater 255 symbols.</value> </data> 

the value be:

"the link name must not blank , not greater 255 symbols." 

so xml:space="preserve" preserves whtespaces @ begin of tag.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -