Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: XML::Simple Output

by Chmrr (Vicar)
on Nov 19, 2003 at 00:32 UTC ( #308200=note: print w/ replies, xml ) Need Help??


in reply to XML::Simple Output

Check out the noattr option to XMLout:

% perl -w use XML::Simple; $xml = XMLin("pre.xml"); $xml->{core}->{test} = 'testeroo'; print XMLout($xml, noattr => 1); ^D <opt> <core> <test>testeroo</test> <variable>ere</variable> </core> </opt> <

Update: You may also be interested in the rootname => 'config' option.

Networking -- only one letter away from not working


Comment on Re: XML::Simple Output
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://308200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-05 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls