- 7. API Reference
7.11. Opt_Xml_Comment class - 7.10.6. substringData()
« Previous - 7.12. Opt_Xml_Dtd class
Next »
7.11. Opt_Xml_Comment class
| Construct | Class |
|---|---|
| Extends | Opt_Xml_Cdata |
The class represents the XML comments and provides an API to manipulate their contents. The class extends Opt_Xml_Cdata, so we can use the same manipulation methods, as in case of ordinary character data nodes.
Note that every XML node may become a comment by setting the node flag commented to true. Their contents, including the node itself, will be enclosed within <!-- and --> tags:
$node->set('commented', true);
- 7.11. Opt_Xml_Comment class
7. API Reference - « Previous
7.10.6. substringData() - Next »
7.12. Opt_Xml_Dtd class