R4R
Right Place For Right Person TM
 
R4R DTD
R4R provide basic DTD Tutorials concept with DTD Examples . Through R4R you can develop DTD programming concept. R4R provide DTD Interview Questions with answers.R4R provide DTD Languages study materials in easy way.

DTD Interview Questions with Answers

1.1    DTD Subjective Questions with Answers
1.2    DTD Interview Questions with Answers
1.3    DTD Objective Questions And Answers
1.4    DTD FAQS

Introduction of DTD

DTD (Document Type Definition )is mostly used in XML for validating an xml document with the help of some set of rules. DTD defines these set of rules i.e. defines the legal building blocks of an XML document and defines document structure with a list of legal elements and attributes. DTD also defines that an xml can contain what elements and in which order, how the elements should be organized inside the other. It specifies that an element can contain what attributes.

A DTD can be defined inside an XML document, or an external reference can be declared.

  • Internal DTD: This type of DTD can be included in the target xml file.
  • External DTD: External dtd is nothing different from internal dtd except defining definition in an external file. External DTD can be use with more than one XML document.
    Rules are given below-
    1.The document type declaration must be written in between the XML declaration and the root element.
    2.Keyword DOCTYPE must be followed by the root element.
    3.keyword DOCTYPE must be in upper case.

Why use DTD?

DTD is very helpful in XML to make description of its own format. Through  DTD, independent groups of people can agree to use a standard DTD for interchanging data. If you have used DTD in your application then you can verify that the data you receive from the outside world is valid.You can also use a DTD to verify your own data.

Difference between DTD and XML Schema-    

  • DTD can have only two types of data, the CDATA and the PCDATA. But in a schema you can use all the primitive data type that you use in the programming language and you have the flexibility of defining your own custom data types.
  • Another difference between DTD and XML Schema, is namespace awareness, XML Schema has, while DTD is not.
  • XML Schema has ability to implement strong typing.
  • XML Schema has a wealth of derived and built-in data types to validate content.
  • DTD has the ability to define DTDs inline, which XML Schema lacks
  • DTD is good when working with small files, as it allows you to contain both the content and the schema within the same document.

Advantage of DTD-

DTDs are easier to code and validate than an XML schema. However, the advantages to using an DTD are shown in the following list:

  • Its support is ubiquitous due to its inclusion in the XML 1.0 standard.
  • DTD define a document type rather than the types used by a namespace, thus grouping all constraints for a document in a single collection.
  • DTD allow the declaration of standard public entity sets for publishing characters.
  • DTD are terse compared to element-based schema languages and consequently present more information in a single screen.

Disadvantage of DTD-  

  • DTD have no explicit support for newer features of XML, most importantly namespaces.
  • DTD use a syntax based on regular expression syntax, inherited from SGML, to describe the schema.

Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

10:New Updates
Tutorials,examples and Interview Questions with answers
Posted By: Shashi     Posted Date:02.10.14

9:C# Tutorials,C# examples and C# Interview Questions with answers
R4R provide C# Tutorials,C# examples and C# Interview Questions with answers. Through R4R you can develop a small application and small programs.We cover C# Tutorials,C# examples and C# Interview Questions and answers for freshers as well experienced programmer.
Posted By: Shashi     Posted Date:11.17.13

8:Java/J2EE(Servlet,JSP,JNDI,Struts,Spring,Hibernate,EJB,JSF,JMS,Web-Services)
In this section R4R covers Java/J2EE(Servlet,JSP, JNDI, Struts, Spring, Hibernate, EJB,JSF,JMS,Web-Services) Tutorials with Examples.R4R provide Java/J2EE (Servlet,JSP, JNDI,Struts, Spring, Hibernate, EJB, JSF, JMS, Web-Services) Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.13.13

7:CoreJava Tutorials , CoreJava Examples and CoreJava Interview Questions with answers
In this section R4R covers CoreJava Tutorials with CoreJava Examples. R4R covers CoreJava programming concept in easy way. R4R provide CoreJava Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

6:Microsoft.net Technology ASP.NET,c# ,ADO.NET,WCF,WPF,Silverlight ,VB.net
R4R provides Microsoft Technologies(like ASP.NET,c# ,ADO.NET,WCF,WPF, Silverlight and VB.ne)Tutorials with Examples,programming concept and Interview Questions with answers study materials for freshers and experienced.
Posted By: Shashi     Posted Date:11.04.13

5:J2me Tutorials concept with Examples with Netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

4:J2me Tutorials concept with Examples ith netbean IDE and J2ME Application Examples.
R4R cover basic J2me Tutorials concept with Examples and provide a way to develop J2me programming concept in easy way. R4R provide J2me Interview Questions with answers.R4R provide J2me Languages study materials with examples uing Netbean IDE and J2ME Application Examples.
Posted By: Shashi     Posted Date:10.30.13

3:Java ebooks , Java tutorials , Java examples , Java interview questions and answers
R4R provides study materials for Java/j2EE technologies. R4R covers core java, advanced java, servlet, JSP, Struts, Spring, Hibernate, EJB, JSF, J2ME, ANT, JUnit and Some APIS .R4R also provides ebooks,tutorials,examples, interview questions and answers.
Posted By: Shashi     Posted Date:10.30.13

2:Learn basic C++ Tutorials with Examples , C++ Interview Questions with answers
R4R is a free E-learning website.You can learn basic C++ Tutorials with Examples , C++ Interview Questions with answers and also some hot topics.
Posted By: Shashi     Posted Date:10.30.13

1:C Tutorials with Example C subjective and objective interview questions and answers
R4R provide C Tutorials with Example and also provides C subjective and objective interview questions and answers.You can learn C in easy way.We cover basics of C here and give some examples.
Posted By: Shashi     Posted Date:10.30.13

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R