Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?

Answer Posted / saxena

Document Type Definition (DTD) describes a model or set of rules for an XML document. XML Schema Definition (XSD) also describes the structure of an XML document but XSDs are much more powerful.
The disadvantage with the Document Type Definition is it doesn’t support data types beyond the basic 10 primitive types. It cannot properly define the type of data contained by the tag.
An Xml Schema provides an Object Oriented approach to defining the format of an xml document. The Xml schema support most basic programming types like integer, byte, string, float etc., We can also define complex types of our own which can be used to define a xml document.
Xml Schemas are always preferred over DTDs as a document can be more precisely defined using the XML Schemas because of its rich support for data representation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of constructor?

873


Can abstract class have constructor in c#?

909


What is the meaning of int parse in c#?

935


What are the steps to create an assembly and add it to the gac?

860


What is anonymous methods in c#?

1088


Why does my windows application pop up a console window every time I run it?

953


What is the difference between properties and indexer in c#?

892


How to use exception handling in stored procedure?

1013


What are the new features in c# 2.0?

967


What is the difference between add and addrange in c#?

996


Why do we overload constructors?

876


What is static variable in c#?

938


What are the advantages of using delegates in c#?

904


What is typeof undefined?

904


Explain the difference between a struct and a class?

935