1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.5.0_06) on Fri Oct 17 16:04:52 EDT 2008 -->
\r
7 MarcXmlDriver (MARC4J API)
\r
10 <META NAME="keywords" CONTENT="org.marc4j.util.MarcXmlDriver class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="MarcXmlDriver (MARC4J API)";
\r
25 <BODY BGCOLOR="white" onload="windowTitle();">
\r
28 <!-- ========= START OF TOP NAVBAR ======= -->
\r
29 <A NAME="navbar_top"><!-- --></A>
\r
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
\r
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
34 <A NAME="navbar_top_firstrow"><!-- --></A>
\r
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
36 <TR ALIGN="center" VALIGN="top">
\r
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MarcXmlDriver.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 PREV CLASS
\r
56 <A HREF="../../../org/marc4j/util/XmlMarcDriver.html" title="class in org.marc4j.util"><B>NEXT CLASS</B></A></FONT></TD>
\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
58 <A HREF="../../../index.html?org/marc4j/util/MarcXmlDriver.html" target="_top"><B>FRAMES</B></A>
\r
59 <A HREF="MarcXmlDriver.html" target="_top"><B>NO FRAMES</B></A>
\r
60 <SCRIPT type="text/javascript">
\r
63 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
68 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
76 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
78 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
81 <A NAME="skip-navbar_top"></A>
\r
82 <!-- ========= END OF TOP NAVBAR ========= -->
\r
85 <!-- ======== START OF CLASS DATA ======== -->
\r
88 org.marc4j.util</FONT>
\r
90 Class MarcXmlDriver</H2>
\r
92 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
\r
93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.marc4j.util.MarcXmlDriver</B>
\r
97 <DT><PRE>public class <B>MarcXmlDriver</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
\r
101 Provides a basic driver to convert MARC records to MARCXML. Output is encoded in UTF-8.
103 The following example reads input.mrc and writes output to the console:
106 java org.marc4j.util.MarcXmlDriver input.mrc
110 The following example reads input.mrc, converts MARC-8 and writes output in
114 java org.marc4j.util.MarcXmlDriver -convert MARC8 -out output.xml input.mrc
118 It is possible to post-process the result using an XSLT stylesheet. The
119 following example converts MARC to MODS:
122 java org.marc4j.util.MarcXmlDriver -convert MARC8 -xsl http://www.loc.gov/standards/mods/v3/MARC21slim2MODS3.xsl -out modsoutput.xml input.mrc
126 For usage, run from the command-line with the following command:
129 java org.marc4j.util.MarcXmlDriver -usage
133 Check the home page for <a href="http://www.loc.gov/standards/marcxml/">
134 MARCXML </a> for more information about the MARCXML format.
\r
139 <DT><B>Version:</B></DT>
\r
140 <DD>$Revision: 1.5 $</DD>
\r
141 <DT><B>Author:</B></DT>
\r
142 <DD>Bas Peters</DD>
\r
148 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
150 <A NAME="constructor_summary"><!-- --></A>
\r
151 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
152 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
153 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
154 <B>Constructor Summary</B></FONT></TH>
\r
156 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
157 <TD><CODE><B><A HREF="../../../org/marc4j/util/MarcXmlDriver.html#MarcXmlDriver()">MarcXmlDriver</A></B>()</CODE>
\r
160 </TD>
\r
164 <!-- ========== METHOD SUMMARY =========== -->
\r
166 <A NAME="method_summary"><!-- --></A>
\r
167 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
168 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
169 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
170 <B>Method Summary</B></FONT></TH>
\r
172 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
174 <CODE>static void</CODE></FONT></TD>
\r
175 <TD><CODE><B><A HREF="../../../org/marc4j/util/MarcXmlDriver.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] args)</CODE>
\r
178 Provides a static entry point.</TD>
\r
181 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
\r
182 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
183 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
184 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
\r
186 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
187 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
\r
193 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
195 <A NAME="constructor_detail"><!-- --></A>
\r
196 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
197 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
198 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
199 <B>Constructor Detail</B></FONT></TH>
\r
203 <A NAME="MarcXmlDriver()"><!-- --></A><H3>
\r
206 public <B>MarcXmlDriver</B>()</PRE>
\r
210 <!-- ============ METHOD DETAIL ========== -->
\r
212 <A NAME="method_detail"><!-- --></A>
\r
213 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
214 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
215 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
216 <B>Method Detail</B></FONT></TH>
\r
220 <A NAME="main(java.lang.String[])"><!-- --></A><H3>
\r
223 public static void <B>main</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] args)</PRE>
\r
225 <DD>Provides a static entry point.
231 <li>-xsl <stylesheet URL> - post-process using XSLT-stylesheet
233 <li>-out <output file> - write to output file</li>
234 <li>-convert <encoding> - convert <encoding> to UTF-8 (Supported encodings: MARC8, ISO5426, ISO6937)</li>
235 <li>-encode <encoding> - read data using encoding <encoding></li>
236 <li>-normalize - perform Unicode normalization</li>
237 <li>-usage - show usage</li>
238 <li><input file> - input file with MARC records
245 <!-- ========= END OF CLASS DATA ========= -->
\r
249 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
250 <A NAME="navbar_bottom"><!-- --></A>
\r
251 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
\r
252 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
254 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
255 <A NAME="navbar_bottom_firstrow"><!-- --></A>
\r
256 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
257 <TR ALIGN="center" VALIGN="top">
\r
258 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
259 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
260 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
261 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MarcXmlDriver.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
262 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
263 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
264 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
265 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
269 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
275 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
276 PREV CLASS
\r
277 <A HREF="../../../org/marc4j/util/XmlMarcDriver.html" title="class in org.marc4j.util"><B>NEXT CLASS</B></A></FONT></TD>
\r
278 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
279 <A HREF="../../../index.html?org/marc4j/util/MarcXmlDriver.html" target="_top"><B>FRAMES</B></A>
\r
280 <A HREF="MarcXmlDriver.html" target="_top"><B>NO FRAMES</B></A>
\r
281 <SCRIPT type="text/javascript">
\r
284 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
289 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
296 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
297 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
298 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
299 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
302 <A NAME="skip-navbar_bottom"></A>
\r
303 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r
306 Copyright © 2002-2006 Bas Peters. All Rights Reserved.
\r