- or download this
<prices>
<section name="blah">
<open>5</open>
...
<ttype ...>
</section>
</prices>
- or download this
use strict;
use Template;
my $tt = Template->new();
$tt->process('config.tt', {}) or die $tt->error();
- or download this
[%- USE xml = XML.Simple('config.xml') %]
[%- FOREACH a = xml.keys() %]
...
[%- END %]
[%- END %]
[%- END %]
- or download this
[%- USE xml = XML.DOM %]
[% dom = xml.parse( 'config.xml' ) %]
...
[%-END%]
[% #USE Dumper %]
[%# Dumper.dump(xml) %]