NAME

MARC::File::XML - Work with MARC data encoded as XML

SYNOPSIS

my $batch = MARC::Batch->new( 'XML', $filename );
my $record = $batch->next();

my $file = MARC::File::XML::in( $filename );
my $record = $file->next();

DESCRIPTION

The MARC-XML distribution is an extension to the MARC-Record distribution for working with MARC21 data that is encoded as XML. The XML encoding used is the MARC21slim schema supplied by the Library of Congress. More information may be obtained here: http://www.loc.gov/standards/marcxml/

You must have MARC::Record installed to use MARC::File::XML. In fact once you install the MARC-XML distribution you will most likely not use it directly, but will have an additional file format available to you when you use MARC::Batch.

This version of MARC-XML supersedes an the versions ending with 0.25 which were used with the MARC.pm framework. MARC-XML now uses MARC::Record exclusively.

If you have any questions or would like to contribute to this module please sign on to the perl4lib list. More information about perl4lib is available at http://perl4lib.perl.org.

METHODS

decode()

You probably don't ever want to call this method directly. If you do you should pass in a MARC::Record as the first argument, and a chunk of XML text as the second.

It is normally invoked by a call to next(), see MARC::Batch or MARC::File.

TODO

  • Implement MARC::File::XML::encode() for encoding as XML.

  • Support for character translation using MARC::Charset.

  • Support for callback filters in decode().

  • Command line utilities marc2xml, etc.

SEE ALSO

http://www.loc.gov/standards/marcxml/
MARC::File::USMARC
MARC::Batch
MARC::Record

AUTHORS

  • Ed Summers <ehs@pobox.com>

1 POD Error

The following errors were encountered while parsing the POD:

Around line 122:

You forgot a '=back' before '=head1'