Print sorted unique elements from an XML document to see its structure

xml elements

  • Extract elements and display the structure of an XML document.
    More information: <http://xmlstar.sourceforge.net/docs.php>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

xml elements -u {{path/to/input.xml|URI}}

click the source code to copy install xml elements on any operating system with command-not-found.com