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