HXXMLNS(1)
π NAME π
hxxmlns β bestie, this is the girl that replaces XML Namespace prefixes with "global names" β¨
πΈ SYNOPSIS πΈ
hxxmlns [ -d ] [ -- ] [ file ]
π DESCRIPTION π
okay so picture this: your XML doc is out here with all these lil namespace prefixes everywhere, right? hxxmlns goes and expands every element name and every attribute name into a "global name" by expanding that prefix out. No prefix left behind, periodt. π
Every name gets printed like this:
{URL}name
And if an attribute name has no prefix at all? Then its namespace part is just empty, like:
{}name
ngl it's giving "mystery box but the box is empty." π«Ά
Also, the namespace attributes β and we mean the ones that start with xmlns β get removed. Gone. Not invited to the party. π
π¦ what happens to the other stuff π¦
By default, comments, PIs and the DOCTYPE declaration are all copied through unchanged β they stay exactly as they were, living their best life. π
But if you pass the -d option, they get removed instead. Just like that. No cap. π
π the options, quick rundown π
-dβ deletes comments, PIs and theDOCTYPEdeclaration instead of copying them unchanged. bye bestie π--β the classic "end of options" marker, so the thing after it is treated as a file and not as an option. iconic behaviour fr fr.fileβ the file you want to feed it. give it a file, it does the thing. π
β todo β
[ToDo]
(yes, that's literally it. the authors left a lil note. we love an honest queen. π)
π heads up bestie: that [ToDo] is straight from the original page β it's not me being mysterious, that's just what's written.
okay that's the whole vibe, mwah π β¨
This lil page lives in the HTML-XML-utils collection, section 1 of the manual, and this version is tagged 7.x, dated 10 Jul 2011. treat her well, she's been around since 2011 and she still slays ππ¦
π¦ 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