7. API Reference
7.10. Opt_Xml_Cdata class
7.9.9. set()
« Previous
7.10.1. appendData()
Next »

7.10. Opt_Xml_Cdata class

Table of Contents

ConstructClass
ExtendsOpt_Xml_Node
Extended byOpt_Xml_Comment

Opt_Xml_Cdata objects represent a static text within the tags. They may be children of Opt_Xml_Text only, together with Opt_Xml_Expression.

These nodes support the optional state variable cdata (for more information on state variables, see Opt_Xml_Buffer). If it is set to true, the text stored in this tag becomes a CDATA section.

To disable CDATA in all the descendants of the specified node, we can use the public method of Opt_Instruction_Literal processor:

$compiler->processor('literal')->disableCDATA($node);
7.10. Opt_Xml_Cdata class
7. API Reference
« Previous
7.9.9. set()
Next »
7.10.1. appendData()