wat is the differences between xsd and dtd

Answers were Sorted based on User's Feedback



wat is the differences between xsd and dtd..

Answer / 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

wat is the differences between xsd and dtd..

Answer / rajeev.t

XSD means xml based alternative DTD

DTD is text file list of valid elements to be used in that xml their order occurance (or) grammer file

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Middleware AllOther Interview Questions

How should requirements on middleware performance be characterized?

0 Answers  


what is the difference between ssl and sso

0 Answers   Fidelity, TCS,


How to set the size limit in AD so it can return more than 1000 entries?

0 Answers  


what is the role of freeware in middleware solutions?

0 Answers  


i am creating the 10 servers, How to run the 10 servers at a time using scripting?

1 Answers  






a queue contains 100 msgs i have to delete msgs from 20 to 30 msgs how is it possible

1 Answers  


What is SESAME?

0 Answers  


What are the important Middleware components?

0 Answers   Wipro,


wat is the differences between xsd and dtd

2 Answers   L&T, Production Support,


What are the installation modes in weblogic?

0 Answers  


Why is middleware important?

0 Answers   TCS,


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

0 Answers  


Categories