hello
for people using XML::Writer, you can write to a string by using
the IO::String module..
example:
my ($output, $io, $obj);
$io = IO::String->new($output);
tie *IO, 'IO::String';
$obj = new XML::Writer(OUTPUT => $io, DATA_MODE => 1, DATA_INDENT => 1);
.
<code to build xml>
.
.
$obj->end();
print $output;
DESCRIPTION
The IO::String module provide the IO::File interface for
in-core strings. An IO::String object can be attached to
a string, and will make it possible to use the normal file
operations for reading or writing data, as well as seeking
to various locations of the string. The main reason you
might want to do this, is if you have some other library
module that only provide an interface to file handles, and
you want to keep all the stuff in memory
patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: mod_perl advocacy project resurrection Perrin Harkins
- RE: mod_perl advocacy project resurrection Gunther Birznieks
- Re: mod_perl advocacy project resurrection Drew Taylor
- Perl vs Java (XML Modules) Matt Sergeant
- Re: Perl vs Java (XML Modules) Drew Taylor
- Re: mod_perl advocacy project resurrection barries
- [OT] mod_perl longevity [Was: mod_perl advocacy project ... Ajit Deshpande
- Re: [OT] mod_perl longevity [Was: mod_perl advocacy... brian moseley
- Re: [OT] mod_perl longevity [Was: mod_perl advo... Ajit Deshpande
- [OT] Starting a Company on OS [Was: mod_perl longev... Gunther Birznieks
- RE: mod_perl advocacy project resurrection Dave Rolsky
- RE: mod_perl advocacy project resurrection brian moseley
- Re: mod_perl advocacy project resurrection Ben Cottrell
- Re: mod_perl advocacy project resurrection Chris Winters
- Re: mod_perl advocacy project resurrection Jim Woodgate
- Re: mod_perl advocacy project resurrection Dave Rolsky
