public class MarcXmlDriver extends Object
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.
| Constructor and Description |
|---|
MarcXmlDriver() |
public static void main(String[] args)
Arguments:
Copyright © 2014 FreeLibrary. All Rights Reserved.