wat is the differences between xsd and dtd

Answer Posted / t.narayana rao

Both DTD (Document Type Definition) and XSD (Xml Schema
Definition) intends to do the same thing: define the
structure of an XML document.

DTD was introduced in 1999 along with the XML specification.
It addresses the following:
1. Define elements, attributes and entities
2. The content model (what is between open tag and closing
tag) for each element.
3. The possible attributes for an element
4. The content data type for elements and attributes
5. Entities that can be referenced by an XML
and so on.

As XML became more and more popular, in 2001 W3C
standardized XSD to define the structure of an XML with more
features:
1. XSD is follows XML syntax
2. Introduced over 40 datatypes
3. constraints on the data (of elements/ attributes)
4. precise no.of occurences of elements
and so on.

The biggest advantage of using an XSD over DTD is that you
can specify all your validation rules in an XSD and the
parser can check the same for you before the actual
application that needs the data gets it.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in filepooling concept if the file doesnt go to target location then it is error directory how to solve this problem

1703


about garbage collection isssues in weblogic server 10.3 version

4155


What's a PRF?

1845


how to insert or retrieve only 2000 records with having 10000 records

1721


If you take 10 transformers in a try sequence, in which order error will be executed in the sequence?

2213






What is JacORB?

3573


Between what parties does authentication happen when the client and the server communicate over SSL via Visibroker's Gatekeeper?

1716


How to detect when a connection between a client and server is broken?

1643


what is the role of freeware in middleware solutions?

1829


What is mod_cluster In JBOSS and Weblogic?what is the use mod_cluster?

3321


How should requirements on middleware performance be characterized?

1643


Should we choose Netscape of Microsoft plateform ?

1655


How to assign the ssl certificate to particular qm?

491


When JAVA will be mature ?

1761


Consider an enterprise wide system that you will be designing. The system’s purpose is file sharing, database‐dependent application delivery, OLTP and web application delivery. There will be 4 servers for each of these applications. If you were provided with a strict requirement for two‐tier architecture but had to accommodate over 5000 users what technologies and innovative methods would you use to facilitate the operation of such a system. (Note that twotier architecture has scalability issues in terms of number of users)

1813