in reply to how to replace the <anon> tag (XML::Simple)
use strict; use warnings; use XML::Simple ; my @doc = { a => 'a', b => 'b' } ; my $xs = new XML::Simple(RootName => 'something_else'); print $xs->XMLout({record => \@doc}, noattr => 1, xmldecl => '<?xml version="1.0">');
Prints:
<?xml version="1.0"> <something_else> <record> <a>a</a> <b>b</b> </record> </something_else>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to replace the <anon> tag (XML::Simple)
by johngg (Canon) on Apr 19, 2006 at 12:34 UTC | |
by GrandFather (Saint) on Apr 19, 2006 at 19:35 UTC | |
by johngg (Canon) on Apr 19, 2006 at 22:25 UTC |