open file.xml ; for //node { $depth = count(ancestor::*) - 1 ; echo :s { ' ' x $depth } @name ': ' @text ; }
In reply to Re: XML::Simple: list all element attributes
by choroba
in thread XML::Simple: list all element attributes
by element22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |