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