XML::Simple has the "NoAttr" option to produce the XML you want:
>perl -E "use XML::Simple qw||;my $xs=XML::Simple::->new(NoAttr=>1);sa y $xs->XMLout ({x=>{Summ=>1,Config=>2}})" <opt> <x> <Config>2</Config> <Summ>1</Summ> </x> </opt>
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
In reply to Re: Help with output formatting with xml::simple
by NetWallah
in thread Help with output formatting with xml::simple
by JeremyL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |