[%- USE xml = XML.DOM %] [% dom = xml.parse( 'config.xml' ) %] [% FOREACH product = dom.getElementsByTagName('price') %] [% product.getAttribute('ttype') %]: [% VIEW ttype%] [% BLOCK product %] [% item.content(view) %] [% END %] [%- END %] [%-END%] [% #USE Dumper %] [%# Dumper.dump(xml) %]