This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD and XML Schema

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
DTD and XML Schema are used for validate the structure of xml.
When do we use DTD instead of XML Schema and vice versa?

thanks
daniel
 
Arun Prasath
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends upon your requirement.
DTD is not an XML document and its limited.
Schema is a XML document and it is extensible.
DTD doesnt support Namespaces but schema does.
DTD doesnt have many datatypes where as schema has 44 built in datatypes. and you can define your own datatypes.
The following Tutorialgives a good idea of Schema and the difference between them.
Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic