Help for this page

Select Code to Download


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