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>
Back to
Seekers of Perl Wisdom