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

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...