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


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.


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 );

The end method does not close the underlying file handle.