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 the DOCTYPE declaration 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 πŸŽ€πŸ¦‹