in reply to XML::Simple: list all element attributes

Using XML::XSH2, a wrapper around XML::LibXML:
open file.xml ; for //node { $depth = count(ancestor::*) - 1 ; echo :s { ' ' x $depth } @name ': ' @text ; }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ