*
The moose likes XML and Related Technologies and the fly likes Does JAXB use DTD or Schema? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Does JAXB use DTD or Schema?" Watch "Does JAXB use DTD or Schema?" New topic
Author

Does JAXB use DTD or Schema?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
I am looking into jaxb. Some say JAXB uses DTD and some say it uses schema. Which one is true?
Thanks.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The version I was working with earlier used DTD, but according to The JAXB Page the latest version handles a subset of W3C schema and no longer works with DTDs.
Ah the joys of trying to keep up with the latest release... :roll:
Bill
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Thanks Bill.
It looks like we have to use schema instead of DTD now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does JAXB use DTD or Schema?
 
Similar Threads
Is there a java API to generate xml with an inline schema definition
JAXB with log.xml
Schema with JAXB
Different about DTD and XML Schema
Two Question [JAXB and JAX-WS]