newCDATA( item... )

Returns a new CDATA object, which contains the specified items. The CDATA object is used to influence how MillScript renders content into an XML document.

This function takes 1 or more arguments, which are grouped together into a single CDATA object. The CDATA object may result in multiple CDATA sections in a rendered XML file.

The following example shows how you might construct and use a CDATA object.

:-) var cdata = newCDATA( "hello", <element><child>"<>"</child></element> );
There are 0 results
:-) xmlFile( "somefile.xml", <xml>cdata</xml> );
There is 1 result
/somefile.xml
      

The contents of the somefile.xml would look like:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xml><![CDATA[hello<element><child><></child></element>]]</xml>