Xml.Win.msxmldom.TMSDOMCDATASection
Delphi
TMSDOMCDATASection = class(TMSDOMText, IDOMCDATASection)
C++
class PASCALIMPLEMENTATION TMSDOMCDATASection : public TMSDOMText
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Xml.Win.msxmldom.pas Xml.Win.msxmldom.hpp |
Xml.Win.msxmldom | Xml.Win.msxmldom |
Description
Represents a CDATA section of a DOM document.
A CDATA section is a node with general character data. CDATA text can contain any characters, except the sequence ]]>
.
CDATA := TMSDOMCDATASection.Create(Doc.MSDocument.createCDATASection('no&restrict<ions"></'));
Writeln(CDATA.MSCharacterData.data); { no&restrict<ions"></ }
A CDATA section cannot have child nodes.
Note: To retrieve an
IXMLDOMCharacterData
reference from a TMSDOMCDATASection object, you can use the MSCharacterData property.