batkins has asked for the wisdom of the Perl Monks concerning the following question:
This is pre.xml:use XML::Simple; $xml = XMLin("pre.xml"); $xml->{core}->{test} = 'testeroo'; $res = XMLout($xml); print $res;
And this is the output:<config> <core> <variable>ere</variable> </core> </config>
Is there any way to make the result look like:<opt> <core test="testeroo" variable="ere" /> </opt>
If not, is there some other module that can make this happen?<opt> <core> <test>testeroo</test> <variable>ere</variable> </core> </opt>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::Simple Output
by Chmrr (Vicar) on Nov 19, 2003 at 00:32 UTC | |
Re: XML::Simple Output
by Cody Pendant (Prior) on Nov 19, 2003 at 05:40 UTC | |
by grantm (Parson) on Nov 19, 2003 at 09:05 UTC | |
by Cody Pendant (Prior) on Nov 19, 2003 at 20:30 UTC | |
by grantm (Parson) on Nov 20, 2003 at 01:00 UTC | |
by Cody Pendant (Prior) on Nov 20, 2003 at 20:17 UTC | |
by PodMaster (Abbot) on Nov 19, 2003 at 08:32 UTC |