20,741
edits
Philosopher (talk | contribs) m (More cleanup) |
m (→The PropertyList format: cdata) |
||
Line 100: | Line 100: | ||
For further information please refer to [[$FG_ROOT]]/Docs/README.introduction and [[$FG_ROOT]]/Docs/README.properties. | For further information please refer to [[$FG_ROOT]]/Docs/README.introduction and [[$FG_ROOT]]/Docs/README.properties. | ||
== CDATA == | |||
Whenever you need to embed text that isn't valid XML, because it may contain XML tokens, you need to wrap the whole section in a CDATA section, this is typically done with [[Nasal]] code, so that it doesn't need to escape XML entities: | |||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<nasal> | |||
<![CDATA[ | |||
print("<!-- Hello World-->\n"); | |||
]]> | |||
<nasal> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
== PropertyList-based configuration files == | == PropertyList-based configuration files == |