xml-xmln

Display XML namespace information

TLDR

Show namespace information
$ xml xmln [file.xml]

SYNOPSIS

xml xmln [options] [file]

DESCRIPTION

xml xmln displays namespace information in XML documents. Part of the xmlstarlet toolkit. Shows declared namespaces with their prefixes and URIs, which is useful for crafting XPath expressions that target namespaced elements.

PARAMETERS

file

Input XML file.

INSTALL

sudo dnf install xmlstarlet
sudo pacman -S xmlstarlet
sudo apk add xmlstarlet
sudo zypper install xmlstarlet
brew install xmlstarlet
nix profile install nixpkgs#xmlstarlet

CAVEATS

Operates only on well-formed XML. Default namespaces (without a prefix) are reported without a prefix; use an alias when building XPath queries.

SEE ALSO

xml-elements(1), xml-select(1)