XML parsing & special character error

In XML files, some symbols have special meanings. If they are used directly, XML parsing errors will be reported. In order to avoid errors, we need to operate special characters with their corresponding escape entities. These characters are as follows

<   ==  & amp; lt;

>   ==  & amp;>

& ==   & amp; amp;   // & XML is used to escape. If it is used directly, an error will be reported, and its escaped characters must be used

‘   == & amp; apos;

”   ==  & amp; quot;

Similar Posts: