HXUNXMLNS(1)
π HXUNXMLNS β like, the glow-up for XML global names π
okay bestie, welcome to hxunxmlns, a lil tool from the HTML-XML-utils crew. it lives in section 1 of the manual, so it's a user command, not some deep kernel sorcery. π
β¨ NAME β¨
hxunxmlns β swap out XML "global names" and put Namespace prefixes back in their place π
πΈ SYNOPSIS πΈ
hxunxmlns [ -- ] [ file ]
π¦ DESCRIPTION π¦
so here's the tea: hxunxmlns is literally the reverse of hxxmlns(1). they're giving opposites-attract, main character energy, iconic duo. π«Ά
what it does is take element and attribute names shaped like this:
<{URL1}foo {URL2}bar="...">
and turns them into this:
<foo xmlns="URL1" xmlns:x="URL2" x:bar="...">
periodt. that's the whole transformation. β¨
also! the predefined XML Namespace gets recognized, and it gets replaced by the prefix "xml:". no cap. π
π DIAGNOSTICS π
here are the exit values it hands back to you, and yes we're reading them like a vibe check:
0β successful completion. slay. everything went off without a hitch, we love to see it. π> 0β one or more errors occurred in the parsing of the file. π not the parse errors bestie. go check your XML.
π₯ SEE ALSO π₯
hxxmlns(1)β the other half of this iconic pair, go say hi π
π BUGS π
real talk: the error recovery for incorrect XML is primitive. like, it's giving caveman. don't expect it to gently hold your broken file and nurse it back to health, because it will not. π
π the sign-off π
this page came to you from the HTML-XML-utils collection, sitting at version 7.x, and it was dated 10 Jul 2011 β yes it's vintage, and yes vintage is a vibe. π
go forth and un-namespace, bestie. you got this. π§β¨
π¦ where this page comes from
- alpine 3.24: html-xml-utils-doc 8.7-r0 Β· W3C
- arch rolling: html-xml-utils 8.8-1 Β· W3C
- debian bookworm: html-xml-utils 7.7-1.1 Β· W3C
- debian trixie: html-xml-utils 7.7-1.1+b1 Β· W3C
- fedora 43: html-xml-utils 8.6-2.fc41 Β· W3C AND BSD-3-Clause
- fedora 44: html-xml-utils 8.7-1.fc44 Β· W3C AND BSD-3-Clause
- nixos 26.05: html-xml-utils 8.7
- nixpkgs unstable: html-xml-utils 8.7
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- ubuntu jammy: html-xml-utils 7.7-1.1 Β· W3C
- ubuntu noble: html-xml-utils 7.7-1.1build2 Β· W3C
- ubuntu questing: html-xml-utils 7.7-1.1build2
- ubuntu resolute: html-xml-utils 7.7-1.3 Β· W3C
- ubuntu stonking: html-xml-utils 7.7-1.3 Β· W3C
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms