*
The moose likes XML and Related Technologies and the fly likes Difference Between XML Schema and DTD 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 "Difference Between XML Schema and DTD" Watch "Difference Between XML Schema and DTD" New topic
Author

Difference Between XML Schema and DTD

arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
Hi;
What is the difference between Schema and DTD..
Which one we should use?
thanks a lot for help
arun
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
XML Schema is the way to go.
XML Schema is in xml syntax, DTD has it's own syntax.
With xml schema you can do more extensive validations than with dtd. You have a number of datatypes that you can use. You can put masks on values, ...
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
check this http://www.sitepoint.com/article/931


Spritle Software Blogs
arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
thanks for the support ...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference Between XML Schema and DTD