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