"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Wednesday, July 6, 2011

XML Character Entities

XML pays special attention to a few specific characters, such as & and < and >...
On XAML 
<Button ... >
<Click Me>
</Button>. 
This would not work,The solution is to replace the offending characters with entity
references—specific codes that the XAML parser will interpret correctly

Here’s the corrected markup that uses the appropriate character entities:
<Button ... >
&lt;Click Me&gt;
</Button>

Special Character
Character Entity
Less than ( < )
&lt;
Greater than ( > )
&gt;
Ampersand ( & )
&amp;
Quotation Mark ( “ )
&quot;





Have a nice day... 'N happy Coding :)

No comments: