XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


param (param-2.15) [xmmsas_20070308_1802-6.6.0]

XML: quick introduction Parameter specification file Elements Home Index

Meta Index / Home Page / Developer's notes / Parameter specification file


XML: escape sequences

In text and attribute values, you need to escape ASCII characters like the angle brackets ($<$$>$). Most common encodings are:

  "   &quot;
  <   &lt;
  >   &gt;
  &   &amp;

For example, the text:

  "Me, Myself & <I>"

should be encoded in XML as:

  &quot;Me, myself &amp; &lt;I&gt;&quot;

Alternatively, you may escape the full string by enclosing it with the CDATA (character data) section. A CDATA section begins with the nine-character delimiter $<$![CDATA[ and ends with the delimiter ]]$>$:

  <![CDATA["Me, Myself & <I>"]]>
The only thing that can not go inside the CDATA section is the end-delimiter itself.



XMM-Newton SOC/SSC -- 2007-03-08