http://qs1969.pair.com?node_id=617543


in reply to XML::Writer

Good review, and very helpful. One question though. Rather than writing to a file is it possible to simply write to a variable. I've been trying to determine how to do this, and I've had no luck. Thanks

Replies are listed 'Best First'.
Re: XML::Writer
by Anonymous Monk on Jun 04, 2007 at 15:21 UTC
    I don't have the answer to your specific question however you might take a look at XML::API which does create/return strings of xml.
      This requires IO::String, but this is one method to put the value of the output into a string: my $xml; my $output = IO::String->new($xml); my $w = new XML::Writer(OUTPUT => $output, ... etc
      Even smart people are dumb in most things...