File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes DTD and Schema. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DTD and Schema." Watch "DTD and Schema." New topic

DTD and Schema.

Eager Beaver
Ranch Hand

Joined: Feb 26, 2001
Posts: 187
As I understand DTDs are used with text and as such do not have mechanism for defining the datatypes of elements. Schemas,on the other hand,provide means of specifying element content in terms of datatypes.
I would like to know if there is any deeply significant difference other than that cited above. Apparently both serve the same purpose of validating XML docs.

[This message has been edited by Eager Beaver (edited June 05, 2001).]
Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
HTML is turned off in this forum and I couldn't find another way to post a small table, but FTP it. Enjoy here.
there are two good articles about DTD/Shema comparison:
Comparing W3C XML Schemas and Document Type Definitions
Comparative Analysis of Six XML Schema Languages,
(one of those six XML Schema Languages happened to be DTD )
Also, Eager Beaver, it�s nice to see you here but in this forum you should use your real name, or at least, something which looks like a real name. Of course, this doesn't mean we do not like you!

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Eager Beaver
Ranch Hand

Joined: Feb 26, 2001
Posts: 187
Hey MAP,
Thanks for the reply and it was nice to know that you remember me!! I shall be careful enough to use my real name in my next post here. See if you can figure that out.
wood burning stoves
subject: DTD and Schema.
It's not a secret anymore!