1XML::DOM::CDATASection(U3s)er Contributed Perl DocumentatXiMoLn::DOM::CDATASection(3)
2
3
4

NAME

6       XML::DOM::CDATASection - Escaping XML text blocks in XML::DOM
7

DESCRIPTION

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 con‐
20       tained by the CDATA section. Note that this may contain characters that
21       need to be escaped outside of CDATA sections and that, depending on the
22       character encoding ("charset") chosen for serialization, it may be
23       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 CDATASec‐
30       tions to regular text by default.  To preserve CDATASections, set the
31       parser option KeepCDATA to 1.
32
33
34
35perl v5.8.8                       2002-02-08         XML::DOM::CDATASection(3)
Impressum