Doc::Perlish::Writer is a base class for stream output functions.
# using - generally use a subclass
my $writer = Doc::Perlish::Writer::XML->new();
my $output = $writer->output; # an IO::All object
# or, you can pass an object or specify an IO::All source
# to get the document body
A writer is something that takes Doc::Perlish Serial API events, and converts them into a stream.