org.marc4j.util
Class MarcXmlDriver

java.lang.Object
  extended by org.marc4j.util.MarcXmlDriver

public class MarcXmlDriver
extends Object

Provides a basic driver to convert MARC records to MARCXML. Output is encoded in UTF-8.

The following example reads input.mrc and writes output to the console:

     java org.marc4j.util.MarcXmlDriver input.mrc
 

The following example reads input.mrc, converts MARC-8 and writes output in UTF-8 to output.xml:

     java org.marc4j.util.MarcXmlDriver -convert MARC8 -out output.xml input.mrc
 

It is possible to post-process the result using an XSLT stylesheet. The following example converts MARC to MODS:

     java org.marc4j.util.MarcXmlDriver -convert MARC8 -xsl http://www.loc.gov/standards/mods/v3/MARC21slim2MODS3.xsl -out modsoutput.xml input.mrc
 

For usage, run from the command-line with the following command:

     java org.marc4j.util.MarcXmlDriver -usage
 

Check the home page for MARCXML for more information about the MARCXML format.

Version:
$Revision: 1.5 $
Author:
Bas Peters

Constructor Summary
MarcXmlDriver()
           
 
Method Summary
static void main(String[] args)
          Provides a static entry point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarcXmlDriver

public MarcXmlDriver()
Method Detail

main

public static void main(String[] args)
Provides a static entry point.

Arguments:



Copyright © 2002-2006 Bas Peters. All Rights Reserved.