XML::DO...Section(3)
π NAME π
okay bestie, meet XML::DOM::CDATASection β the page title is XML::DOM::CDATASection(3), and the header line squishes it down to XML::DO...Section(3) like it's texting in a hurry. This is from the User Contributed Perl Documentation pile, and the official vibe is: XML::DOM::CDATASection - Escaping XML text blocks in XML::DOM. β¨
πΈ DESCRIPTION πΈ
okay so first things first: XML::DOM::CDATASection extends XML::DOM::CharacterData, which extends XML::DOM::Node. Inheritance chain? Slay. π
CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. The only delimiter that is recognized in a CDATA section is the "]]>" string that ends the CDATA section. And bestie, CDATA sections can not be nested. The primary purpose is for including material such as XML fragments, without needing to escape all the delimiters. π
The DOMString attribute of the Text node holds the text that is contained by the CDATA section. Note that this may contain characters that need to be escaped outside of CDATA sections and that, depending on the character encoding ("charset") chosen for serialization, it may be impossible to write out some characters as part of a CDATA section. π
The CDATASection interface inherits the CharacterData interface through the Text interface. Adjacent CDATASections nodes are not merged by use of the Element.normalize() method. no cap, they stay separate. π¦
NOTE:XML::DOM::ParserandXML::DOM::ValParserconvert allCDATASectionsto regular text by default. To preserveCDATASections, set the parser optionKeepCDATAto1. π«Ά
mwah π β this page runs on perl v5.42.0, dated 2022-05-23. that's the sign-off, bestie. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-XML-DOM 1.46-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms