Subject: | Add possibility to have the output contained by the object |
Patch attached.
This is quite a lot of meddling, so I don't know if you want to merge
this patch, but juuust in case, here it is. It add the possibility for
the object to store its own output. So you can do:
my $writer = XML::Writer->new( OUTPUT => 'self' );
$writer->startTag( 'foo');
...
$writer->endTag;
$writer->end;
print $writer->to_string;
# or, magically,
print "$writer";
# or even
print $writer->end;
Subject: | patch |
Message body not shown because it is not plain text.