jQuery in Action, 2nd edition*
The moose likes Object Relational Mapping and the fly likes Jaxb question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Jaxb question" Watch "Jaxb question" New topic

Jaxb question

Jochen Maes

Joined: Dec 03, 2002
Posts: 20
Hi all,

I've been using the jaxb-ea version long time, but now i switched to the jaxb 1.4 version because that one is provided with hyperjaxb.

I created a dtd and an xjs, but whatever i try in the anttask (xjc task) i can't get it to work.
So i created a xsd (generated it from the dtd) and ran xjc with that one. This does work but creates a class for each element (even when it should be a value).
In xjs i can define if it should be a value or a class but i don't kow how to handle that with the xsd.

Someone advise on how to use the dtd & xjs with the new jaxbversion?

thank you
wood burning stoves
subject: Jaxb question
Similar Threads
JaxB : Using Same Package For Two XSDs
Problem with xjc ant task in jdk 1.6 in weblogic 10.3
my package doesnt contain ObjectFactory.class or jaxb.index
<XJC> ant task possible ?
How to use JAXB using standard Java APIs