• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD or DTD

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was just looking at the resources folder of Springframework distribution zip file...and i found both DTD's and XSD schema files...

So when do one go for Schema / DTD..?

What are the factors that one needs to take into account while deciding??

Regards
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions
 
sachin poddar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have no idea about Springframework but here is quik diff between XML Schemas and DTDs
1. XML Schemas use XML document syntax. Declarations can have richer and more complex internal structures than declarations in DTD. XML Schemas are pure XML documents, DTDs have several limitations.
2. XML Schemas provide data-oriented data types in addition to the more document-oriented data types XML 1.0 DTDs support.
3. XML Schemas support namespaces.

I would suggest, go for XML Schema
[ May 09, 2007: Message edited by: sachin poddar ]
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sachin!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic