This page uses JavaScript. For the optimal Spencerberus experience, please enable JavaScript or use a browser that supports JavaScript.

spencerberus

xml special characters

CharacterEntity ReferenceNumeric References1Escape Sequence
ampersand ( & )&& , &\&
apostrophe ( ' )'' , '\'
greater-than sign ( > )>> , >\>
less-than sign ( < )&lt;&#60; , &#x3C;\<
quotation mark ( " )&quot;&#34; , &#x22;\"
slash ( \ )&#92; , &#x5C;\\
1 - Unicode code points in decimal and hexidecimal
There are several ways to express the above characters as literals in XML data:
  1. by character code;
  2. by escape sequence; this is why the escape character '\' must also be escaped when intended literally;
  3. In a CDATA block, :
    <![CDATA["One & two are < four"]]>
    The only data that cannot be placed inside a CDATA block is the end delimiter ( ]]> ).