xml to java source files

Petterson Mikael

Usenet Archive
Joined
Nov 27, 2002
Messages
89
Reaction score
0
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
 

ervalerio

Usenet Archive
Joined
Aug 24, 2003
Messages
1
Reaction score
0
Petterson Mikael wrote:

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>

...

maybe netbeans (3.5 as I can see) can generate it for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top