|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marc4j.util.XmlMarcDriver
public class XmlMarcDriver
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.
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 |
---|
public XmlMarcDriver()
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 |