NAME

PICA::Writer::XML - PICA+ XML format serializer

DESCRIPTION

See PICA::Writer::Base for synopsis and details. In addition a PICA::Schema can be provided to include schema information in the XML records for human-readable documentation:

my $writer = PICA::Writer::XML->new( fh => $file, schema => $schema );

The counterpart of this module is PICA::Parser::XML.

METHODS

In addition to write, this writer also contains end method to finish creating the XML document und check for well-formedness.

my $writer = PICA::Writer::XML->new( fh => $file );
$writer->write( $record );
$writer->end();

The end method does not close the underlying file handle.