mascip has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I want to get rid of the <opt> node, created with XMLout().
Let me illustrate this. I want to create a piece of XML that looks like this :
And with this piece of code :<book_1>title_1</book1> <book_2>title_2</book1>
i get this XML structure instead :use XML::Simple; my %xml_hash = ( book1 => ['bla'], book2 => ['bli'], ); my $xml = XMLout(\%xml_hash, KeyAttr => []); print $xml;
I don't want this <opt> node, is there any way to not create it, with XMLout()?<opt> <book_1>title_1</book1> <book_2>title_2</book1> </opt>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Very simple XML::Simple problem
by jacaril (Beadle) on Nov 07, 2012 at 16:25 UTC | |
Re: Very simple XML::Simple problem
by roboticus (Chancellor) on Nov 07, 2012 at 16:31 UTC | |
by mascip (Pilgrim) on Nov 07, 2012 at 16:45 UTC |
Back to
Seekers of Perl Wisdom