org.marc4j.util
Class XmlMarcDriver

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

public class XmlMarcDriver
extends Object

Provides a driver to convert MARCXML records to MARC format.

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

       java org.marc4j.util.XmlMarcDriver input.xml
 

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

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

It is possible to pre-process the input file using an XSLT stylesheet. The transformation should produce valid MARCXML. The following example transforms a MODS file to MARCXML and outputs MARC records.

       java org.marc4j.util.XmlMarcDriver -convert MARC8 -out output.mrc -xsl http://www.loc.gov/standards/marcxml/xslt/MODS2MARC21slim.xsl modsfile.xml
 

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

       java org.marc4j.util.XmlMarcDriver -usage
 

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

Version:
$Revision: 1.4 $
Author:
Bas Peters

Constructor Summary
XmlMarcDriver()
           
 
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

XmlMarcDriver

public XmlMarcDriver()
Method Detail

main

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

Arguments:



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