1XML::DOM::CDATASection(U3s)er Contributed Perl DocumentatXiMoLn::DOM::CDATASection(3)
2
3
4
6 XML::DOM::CDATASection - Escaping XML text blocks in XML::DOM
7
9 XML::DOM::CDATASection extends XML::DOM::CharacterData which extends
10 XML::DOM::Node.
11
12 CDATA sections are used to escape blocks of text containing characters
13 that would otherwise be regarded as markup. The only delimiter that is
14 recognized in a CDATA section is the "]]>" string that ends the CDATA
15 section. CDATA sections can not be nested. The primary purpose is for
16 including material such as XML fragments, without needing to escape all
17 the delimiters.
18
19 The DOMString attribute of the Text node holds the text that is
20 contained by the CDATA section. Note that this may contain characters
21 that need to be escaped outside of CDATA sections and that, depending
22 on the character encoding ("charset") chosen for serialization, it may
23 be impossible to write out some characters as part of a CDATA section.
24
25 The CDATASection interface inherits the CharacterData interface through
26 the Text interface. Adjacent CDATASections nodes are not merged by use
27 of the Element.normalize() method.
28
29 NOTE: XML::DOM::Parser and XML::DOM::ValParser convert all
30 CDATASections to regular text by default. To preserve CDATASections,
31 set the parser option KeepCDATA to 1.
32
33
34
35perl v5.30.0 2019-07-26 XML::DOM::CDATASection(3)