LISTSERV mailing list manager LISTSERV 16.0

Help for MODS Archives


MODS Archives

MODS Archives


MODS@LISTSERV.LOC.GOV


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MODS Home

MODS Home

MODS  February 2004

MODS February 2004

Subject:

Re: Generating Java Objects for MODS Schema

From:

Bas Peters <[log in to unmask]>

Reply-To:

Metadata Object Description Schema List <[log in to unmask]>

Date:

Tue, 3 Feb 2004 16:54:54 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (59 lines)

You might want to try Sun's JAXB http://java.sun.com/xml/jaxb/

JAXB enables you to automatically create Java classes from a W3C XML Schema
document.
The following citation from the JAXB FAQ describes the basic steps in using
JAXB:

After obtaining an XML Schema, you build and use a JAXB application by
performing these steps:
  1.. Generate the Java source files by submitting the XML Schema to the
binding compiler.

  2.. Compile the Java source code.

  3.. With the classes and the binding framework, write Java applications
that:

    a.. Build object trees representing XML da