Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between XML Schema and DTD

 
arun sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
What is the difference between Schema and DTD..
Which one we should use?
thanks a lot for help
arun
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
 
arun sharma
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the support ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic