Extract elements and their attributes from an XML document

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 -a {{path/to/input.xml|URI}} > {{path/to/elements.xpath}}

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