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.