XML::XP...amespace(3)
π XML::XP...amespace(3) π
okay bestie, so this is a page from the User Contributed Perl Documentation set β the manual for XML::XP...amespace(3) β and it's literally the cutest little module ever. tiny. compact. does exactly one job. main character energy fr fr β¨
π NAME π
Namespace β an XML namespace node π¦
like. that's it. that's the whole personality. it's a node that holds a namespace, and it ate. π
β¨ API β¨
πΈ new ( prefix, expanded )
creates a brand new namespace node, bestie π«Ά
and listen β expanded is the expanded namespace URI. that's the important part, don't skip it, i know you were gonna skip it. π
π getPrefix
hands you back the prefix. that's the whole vibe. β
π¦ getExpanded
hands you back the expanded URI. periodt. π
π toString
returns a string that you can drop right into the list of attributes of an element:
xmlns:prefix="expanded"
and it's giving exactly what you need, no cap. π
ngl, this module is lowkey iconic β four methods, zero drama, and every one of them slays. π₯
and that's the whole page, babe π written against perl v5.42.1 and dated 2026-04-21 β so if you're reading this from the future, hi, love u, this is still the manual for XML::XP...amespace(3). mwah. ππ
π¦ 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