veerubiji has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: perl script that genarate xml file.
by davido (Cardinal) on Nov 15, 2011 at 17:33 UTC

    Given that the XML isn't "well formed", I'm not sure why you would want to generate it, much less output it to a file. But in the interest of getting the job done with as little work as possible (in the true spirit of how you asked your question):

    use strict; use warnings; use autodie; my $xml = <<'HERE'; # copy and paste here all the XML you posted # in the node above. HERE open my $fh, '>', 'new.xml'; print $fh $xml; close $fh; #done.

    If you wish to show us what work you've done to get started on the project, what you're doing to prepare the data structure that you wish to dump to XML, and where you're stuck, I'm sure we'll be happy to put more work into helping you with a solution.


    Dave

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: perl script that genarate xml file.
by choroba (Cardinal) on Nov 15, 2011 at 17:29 UTC
    From what do you want to generate the file? Out of nowhere, it can be generated as
Re: perl script that genarate xml file.
by choroba (Cardinal) on Nov 15, 2011 at 18:05 UTC
Re: perl script that genarate xml file.
by vinian (Beadle) on Nov 17, 2011 at 09:06 UTC

    Hi, use template, this module can help you

    HTML::Template