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...


Difference between DTD and XSD?



Difference between DTD and XSD?..

Answer / vinod kayartaya

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.

-Vinod Kayartaya (www.thejavatrainer.com)

Is This Answer Correct ?    29 Yes 10 No

Post New Answer

More JCAPS Interview Questions

What is a Scheduler?

2 Answers  


What is sub collaboration?

0 Answers  


What is Deployment Profile?

4 Answers  


Whis is an Environment?

1 Answers  


What is a Repository?

1 Answers  


What is an Enterprise Manager?

1 Answers  


What is a Logical Host ?

1 Answers  


How to get separate log files for each service in JCAPS?

2 Answers  


What are the ways you can trigger a process?

4 Answers   HCL,


How can we route the data from JMS to different JCD's

4 Answers   Wipro,


Can any one provide Interview questions on JCAPS?

1 Answers   Infosys,


What is a JCD?

2 Answers  


Categories