DHTMLX Docs & Samples Explorer

Index
others

## Special Characters in XML

During the data loading from XML file|string you can have some problems with several special characters. For XML those are < > &amp;

There are two ways to store them in XML

a) Escaping - the characters can be replaced with related XML entities

          > => &amp;gt;
          < => &amp;lt;
          &amp; => &amp;amp;

b) use CDATA section - any data can be stored within CDATA section

          <cell> Specail characters < > &amp;</cell>      <= Incorrect
          <cell> Specail characters &amp;lt; &amp;gt; &amp;amp;</cell>        <= Correct
          <cell><![CDATA[ Specail characters < > &amp;]]></cell>        <= Correct