|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marc4j.util.MarcXmlDriver
public class MarcXmlDriver
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.
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 |
---|
public MarcXmlDriver()
Method Detail |
---|
public static void main(String[] args)
Arguments:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |