#!/usr/bin/perl
use XML::DT;
use Data::Dumper;
%handler = ( -default => sub{$c},
packages => sub{ [ split(",",$c)] },
-type => { vendorinfo => 'MAP',
paks => 'SEQ' }
);
$a = dtstring ("
netscape.com
netscape.commmm
Netscape
active
communicator-4.07, communicator-4.5, navigator-4.07
",%handler);
print Dumper($a);
$a = dtstring ("
netscape.com
netscape.commmm
Netscape
active
- communicator-4.07
- communicator-4.5,
- navigator-4.07
",%handler);
print Dumper($a);