#!/usr/bin/perl

use XML::DT ;
use Data::Dumper;
sub XML::DT::Dumper {}# Dumper(shift)}

my $filename = shift;

%xml=( 'music'    => sub{"Autor da musica: $c ($v{x})"},
       'musica'   => sub{"\n--------------(AMP)$v{x}--------\n$c"},
       'jemptyele' => sub{"($v{x})-$c"},
       'lyrics'   => sub{"Autor da letra:$c"},
       'title'    => sub{ uc($c) . $v{acordes} },
       '-default' => sub{"$q:$c"},
       'arquivo'  => sub{("_" x 60). dt($v{file},%xml2)},
       '-outputenc' => 'ISO-8859-1'
     );

print dtstring("<musica x='1'>
<emptyele x='1'/>
<music>Zeca Afonso</music>
</musica>",%xml),"\n---------------\n";

print dt("x.xml");
print dt("x.xml",%xml);
