Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Writing Out XML using XML::Simple

by AcidHawk (Vicar)
on Apr 07, 2003 at 14:08 UTC ( [id://248601]=note: print w/replies, xml ) Need Help??


in reply to Writing Out XML using XML::Simple

You can try something like this.

my $file = "newfoo.xml"; open CREATE, ">$file") or die "Cannot create XML File: $!"; my $xsimple = XML::Simple->new(); print CREATE $xsimple->XMLout($config, noattr => 1, xmldecl => '<?xml version="1.0"?>'); close(CREATE);

-----
Of all the things I've lost in my life, its my mind I miss the most.

Replies are listed 'Best First'.
Re: Re: Writing Out XML using XML::Simple
by CodeJunkie (Monk) on Apr 07, 2003 at 14:53 UTC

    yeah thanks that was just what I was looking for!

    It messes up my XML a little bit but I guess the meaning remains the same. I think i'll play around the the options to try and keep things the way I want them, thanks though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found