cdata method

void cdata(
  1. Object text
)

Adds a XmlCDATA node with the provided text.

For example, to generate an XML CDATA element <![CDATA[Hello World]]> one would write:

builder.cdata('Hello World');

Implementation

void cdata(Object text) {
  _stack.last.children.add(XmlCDATASyntheticImpl(text.toString()));
}