Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From DTDs (1.3) to XDSs(1.4) - why?

 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Is there any specific reason for they changing from using DTDs (1.3) to XSDs (1.4) for XML definitions?
Just wondering...
 
Wei-ju Wu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XSD's have been around for a while now. From a practical perspective it makes sense to define an XML document in XML (like defining UML using UML) - it is simply more consistent and you do not have to support another language. XML is powerful enough to describe itself.

I was even wondering why Sun held onto DTD's for such a long time
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Also XSDs can provide more flexibility.

thanks
 
osman cinar eren
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an example for that flexibility:
for the files using DTD, the elements in the XML file should be ordered in a proper way as described in the DTD. with the XML schema it is no longer important.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML Schemas have more advantages than DTDs.
(especially defining data types)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic