KB Version:

Page Navigation

Related Links

Learning Levels

Most Read

Announcements RSS Feed of Announcements

System CDATA Tags

Digest

System CDATA tags are a specific type of system pseudo tag denoted by [ cascade:cdata]content[/ cascade:cdata]. They allow an XML CDATA section to be output in page's content when rendered in Cascade or published.

Technical

XML's CDATA section instructs the XML Parser to ignore whatever content is inside of it. This results in the content being treated strictly as character data instead of markup. In the following example,

the '<' and '&' characters, if not wrapped in a CDATA section, would generate a parser error because they indicate the start of an element and the start of a character entity respectively. When applying Formats to page content, CDATA sections in the content are often interpreted and then removed from the resulting xml. The Cascade CDATA tags are used to ensure that the CDATA section makes it into the page content that is output when rendered inside the system and when published.

This is useful when generating RSS feeds, for example, as the feed itself should contain CDATA sections to instruct the feed readers to interpret the content within the sections as character data.

Related Links