XML::XP...e::Text(3)
π NAME π
Text β an XML text node, bestie. That's it, that's the whole vibe. It's the little guy holding the actual words in your XML. β¨
π API π
Okay so here's everything this icon can do. Not a lot of methods, but she does them flawlessly. π
πΈ new ( text )
Makes you a brand new text node. Fresh out the box, main character energy. You hand it some text and boom β text node. π¦
π«Ά getValue / getData
Returns the text. That's the whole job. Two names, one legend, same answer. π
π string_value
Returns the text. Yeah. Again. Different method, same text, no cap. π She's consistent and we love that for her.
π appendText ( text )
Adds the given text string to this node. Like when you're typing a text and you keep going instead of sending β that, but for XML. π
Real talk: all three of the getter-ish things here (getValue,getData,string_value) literally just return the text. No hidden tricks, no drama, no surprises. Lowkey the most well-behaved module in the whole tree. π§
Mwah, that's the whole page. This absolute gem is part of the User Contributed Perl Documentation, running on perl v5.42.1, dated 2026-04-21. Slay, go forth and node your text. πβ¨
π¦ where this page comes from
- fedora 44: perl-XML-XPath 1.49-1.fc44 Β· Artistic-2.0 AND (GPL-1.0-or-later OR Artistic-1.0-Perl)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms