xml to java source files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Petterson Mikael

    #1

    xml to java source files

    Hi,

    I am using Solaris 8 and JDK1.4.1
    I will generate java source files from XML. I am thinking of using JAXB
    package. As input I have my XML and DTD.
    I setup "Java Web Services Developer Pack 1.2" and tried to create the
    source files.

    When I execute the xjc.sh script I have the following options:

    Usage: xjc [-options ...] <schema>

    I tought that I in order to create my java objects need the XML ( with
    elements and attributes) file. The only thing I specify is the schema. I
    don't have a schema either. Is there a tool to generate a schema from a
    DTD on unix?

    All hints are very much appreciated!!

    //Mikael
Working...