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

Are agents will going to work on the Internet ?

1678


what is the ITIL process ?

867


Hello, IBM InfoShere DataStage and InfoShere Federation Server are midleware used to work between different databases located on different machines? I need a middleware that connects the databases that I have installed as I explain below: oracle on N.A. aix 6.1 on a Power 6 db2 on N.A. aix 5.3 on a Power 5

1741


When a message flow is deployed into integration server it is carried to integration node so what is the internal representation of data for message flow that Integration Node can understand ?

1020


How to use a "corbaloc" object reference with a TAO server?

2034






Give me scenario when we are using custom sql, dynamic sql

2126


Insertnotification, basic notification difference between them? why we need to create trigger sequence,buffer table  manually in basic notification

1945


Difference between Scheduler service and adapter pooling notification

2103


What is SESAME?

1880


How does SESAME relate to the CORBA Security service?

3290


What are the important Middleware components?

1710


What is garbage collection and what is it used for?

479


What is a heap dump?

578


Does JacORB support the "iioploc" object reference format?

2409


What is a heap dump, thread dump?

531