Special Characters and XML Strings
XML has a special set of characters that cannot be used in normal XML strings. These characters are:
& - &
< - <
> - >
" - "
' - '
For example, the following XML string is invalid:
<Organization>Santa & Banta</Organization>Whereas the following is valid XML:
<Organization>Santa & Banta</Organization>—Note that we have replaced '&' with '&' in the second XML string which makes it valid.
XML has a special set of characters that cannot be used in normal XML strings. These characters are:
& - &
< - <
> - >
" - "
' - '
For example, the following XML string is invalid:
<Organization>Santa & Banta</Organization>Whereas the following is valid XML:
<Organization>Santa & Banta</Organization>—Note that we have replaced '&' with '&' in the second XML string which makes it valid.
No comments:
Post a Comment