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
what is the difference between environment
how to insert or retrieve only 2000 records with having 10000 records
what is the difference between TAO's Real-Time Event Service and the OMG Notification Service?
How to detect when a connection between a client and server is broken?
what are open source RFID middleware?
about garbage collection isssues in weblogic server 10.3 version
Some one is given me xsd file am not having any flowservice how to create wsdl?how to consume wsdl and generate services?
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 ?
why middleware can be difficult to write and test.
What are the important Middleware components?
How communication happens in between weblogic and web server?
How should requirements on middleware performance be characterized?
How to connect tn in webmethods?
Should we choose Netscape of Microsoft plateform ?
What are the installation modes in weblogic?