CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
DTD Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM XML INTERVIEW QUESTIONS DTD INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

DTD Interview Questions & Answers - Learning Mode

A document type definition (DTD) is a set of markup declarations that define a document type for an SGML-family markup language (SGML, XML, HTML). A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes.

Try DTD Interview Questions & Answers - Exam Mode

1

Sort By : Latest First | Oldest First | By Rating

DTD Interview Questions & Answers - Learning Mode
Try DTD Interview Questions & Answers - Exam Mode
Question: How to declare DTD?

Answer:
DTD has two types of declarations internal and external.I have given you brief information of internal and external DTD.

1. Internal DTD Declaration : I have given you a syntax using them you can declare internal DTD in our XML file.
Syntax:
<!DOCTYPE root-element [element-declarations]>
Example: Now I used internal DTD in XML file like that,
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to Source: CoolInterview.com
Question: Give the main reasons to use DTD?

Answer: Some main reasons to use DTD are given Below:
1. Using DTD XML files can write its description into its format.
2. DTD is an most acceptable standard using DTD different group members can interchange data each other.
3. Also, using DTD we can check the validity of our own data and the data that comes from different groups(other persons).
Source: CoolInterview.com
Question: What is DTD?

Answer:
DTD is stands for Document Type Defintion. We use DTD in XML document to define the legal building blocks.
Using DTD we can also define the structure of an document with name of legal attributes and elements. Source: CoolInterview.com
Question:
Give some examples of XML DTDs


Answer:
Although XML does not require data to be validated against a DTD, many of the benefits of using the technology are derived from being able to validate XML documents against business or technical architecture rules Source: CoolInterview.com
Question:
Can I use XML namespaces in DTDs?


Answer:
Yes and no.In particular, DTDs can contain qualified names but XML namespace declarations do not apply to DTDs .This has a number of consequences. Because XML namespace declarations do not apply to DTDs:1. There is no way to determine what XML namespace a prefix in a DTD points to. Which means...2. Qualified names in a DTD cannot be mapped to universal names. Which means...3. Element type and attribute declarations in a DTD are expressed in terms of qualified names, not universal names. Whic Source: CoolInterview.com
Question:
When constructing an XML DTD


Answer:
Every interview session should have at least one trick question. Although possible when using SGML, XML DTDs don't support defining external entity references in attribute values. It's more important for the candidate to respond to this question in a logical way than than the candidate know the somewhat obscure answer. Source: CoolInterview.com
Question:
How do I write my own DTD?


Answer: You need to use the XML Declaration Syntax (very simple: declaration keywords begin with <!ELEMENT Shopping-List (Item)+><!ELEMENT Item (#PCDATA)>It says that there shall be an element called Shopping-List and that it shall contain elements called Item: there must be at least one Item (that's the plus sign) but there may be more than one Source: CoolInterview.com

1



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.09375 Seconds