XML Constants
The XML package defines XML constants. XML constants can be used by the « operator to populate the XmlDocument object.
Within the XML constant block, there is no grammatical relevance to the CRS script, so CRS syntax (such as enclosing strings in “”), constants (such as $RED), operators (such as + and-), and functions. Etc. cannot be used. You have to follow the format as XML.
You can write the XML data directly in the CRS script in the following format.
xml <<-
(XMLデータ)
->>;
Use Example
var x = new XmlDocument();
x << xml <<-
<?xml version="1.0" encoding="SHIFT_JIS"?>
<data>
<record title="Record1">
<item1>Item 1</item1>
<item2>Item 1</item2>
<item3>Item 1</item3>
</record>
</data>
->>;