LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xml-elements

List XML element names and paths

TLDR

List element names
$ xml elements [file.xml]
copy
List with paths
$ xml elements -a [file.xml]
copy
List unique elements
$ xml elements -u [file.xml]
copy

SYNOPSIS

xml elements [options] file

DESCRIPTION

xml elements lists XML element names in a document. Part of xmlstarlet toolkit. Useful for exploring XML structure and discovering available element paths.

PARAMETERS

-a

Show XPath for each element.
-u
Show unique elements only.
-d depth
Maximum depth.

INSTALL

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

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid