Saturday, August 6, 2011

Special Characters and XML Strings

Special Characters and XML Strings
XML has a special set of characters that cannot be used in normal XML strings. These characters are:



& - &
< - &lt;
> - &gt;
" - &quot;
' - &apos;
For example, the following XML string is invalid:


<Organization>Santa & Banta</Organization>Whereas the following is valid XML:

<Organization>Santa &amp; Banta</Organization>—Note that we have replaced '&' with '&amp;' in the second XML string which makes it valid.

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...