NAME
PICA::Writer::XML - PICA+ XML format serializer
DESCRIPTION
See PICA::Writer::Base for synopsis and details.
The counterpart of this module is PICA::Parser::XML.
METHODS
In addition to write
, this writer also contains methods start
and end
to emit an XML header with start tag <collection>
or an end tag, respectively. The start method is automatically called on construction, unless suppressed with option start => 0
:
my $writer = PICA::Writer::XML->new( fh => $file, start => 0 );
$writer->write( $record ); # no <collection> start tag
The end
method does not close the underlying file handle.