XML::XP...:Comment(3)
π NAME π
Comment β bestie, it's an XML comment: <!--comment--> β¨
Like, that's literally it. A whole lil node whose only job is to sit in your XML and say stuff without being, y'know, content. Main character of the comments section fr fr π
π API π
πΈ new ( data )
Creates a brand new comment node. Fresh out the box, no cap. You hand it data, it hands you back a whole comment. Slay π¦
πΈ getValue / getData
Returns the value that's chillin' inside the comment. Two names, same vibe β call it either one, she answers to both π
πΈ toString
Returns the comment as a string, and here's the tea β: if the comment text has a -- in it, that gets encoded as a numeric entity. So your -- doesn't cause chaos. Iconic behaviour, honestly π
π«Ά Quick reminder bestie: this page is from the User Contributed Perl Documentation, so go forth and comment responsibly.
That's the whole page, babe β short and sweet, it's giving minimalism. This little doc is living its life as part of perl v5.42.1, dated 2026-04-21 π Thanks for reading, mwah, bye πβ¨
π¦ 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