Question

In: Computer Science

The two most used HTTP document are Document Type Declaration and document instance. Compare these parts....

The two most used HTTP document are Document Type Declaration and document instance. Compare these parts. Write in your own words. (At least 100 words) Not a picture please

Solutions

Expert Solution

Document Type Declaration

It is also referred as DOCTYPE.Document type declaration is an instruction that associates a particular XML document with a document type definition(DTD).Most of the web browsers are implemented with special-purpose HTML parsers than general purpose DTD-based parsers.These web browsers don't use DTDs and will never access them even if a URL is provided.

Syntax for a document type declaration:

The document type declaration consists of an internal DTD or an external DTD.It can also have a combination of both internal and external DTDs.

Syntax of DOCTYPE for an internal DTD:

<!DOCTYPE root_element

[

    Document type Definition(DTD):

     elements/attributes/entities/notations/processing instructions/comments

]>

Syntax of DOCTYPE for an external DTD:

Two types:

1)private external DTD

Syntax:   <!DOCTYPE root_element SYSTEM "DTD_location">

private external DTDs are identified by the keyword SYSTEM.

2)public external DTD

<!DOCTYPE root_element PUBLIC "DTD_name" "DTD_location">

Document Instance

As there are many types of XML documents,either for transforming or validating.The document instance is classified as an XML file that contains data.

XML Document must be well-formed.An XML document is said to be well-formed if and only if

  • all element start-tags and end-tags must be properly nested.
  • there should be only one top-level element in the file

A Document instance decribes the concept of data present in the document.Document instances are classified into

1)Current Document Instance

2)Particular Document instance

The Current Document Instance is an instance which refers to any document instance that was or could be attained at ot near the time of discussion.

The Particular document instance:

The HTTP protocol allows each one to be uniquely identified by an "Etag" in the document header.If we want to refer a particular document instance ,there are two ways to refer that instane,

  1. By indicating that paricular instance using its Etag
  2. By storing that particular document instance at another web location and use the URL of that web application to refer it.

Finally,

The Document Type Declaration represents what type of a document it is.

The Document Instance represents concept of data present in the document.


Related Solutions

The two most used HTTP document are Document Type Declaration and document instance. Compare these parts....
The two most used HTTP document are Document Type Declaration and document instance. Compare these parts. Write in your own words. (At least 100 words)
Compare between document type declarations and document instance.
Compare between document type declarations and document instance.
Define a class named Document that contains an instance variable of type String named text that...
Define a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString that returns the text field and also include a method to set this value. Next, define a class for Email that is derived from Document and includes instance variables for the sender, recipient, and title of an email message. Implement appropriate set and get methods. The body of the email message should...
Define a class named Document that contains an instance variable of type String named text that stores any textual content for the document.
IN JavaDefine a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString that returns the text field and also include a method to set this value. Next, define a class for Email that is derived from Document and includes instance variables for the sender, recipient, and title of an email message. Implement appropriate set and get methods. The body of the email message...
Define a class named Document that contains an instance variable of type String named text that stores any textual content for the document.
Code in Java Define a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString that returns the text field and also include a method to set this value.Next, define a class for Email that is derived from Document and includes instance variables for the sender, recipient, and title of an email message. Implement appropriate set and get methods. The body of the email message...
Define a class named Document that contains an instance variable of type String named text that stores any textual content for the document.
IN JAVADefine a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString that returns the text field and also include a method to set this value.Next, define a class for Email that is derived from Document and includes instance variables for the sender, recipient, and title of an email message. Implement appropriate set and get methods. The body of the email message should...
A crossover trial is a type of experiment used to compare two drugs. Subjects take one...
A crossover trial is a type of experiment used to compare two drugs. Subjects take one drug for a period of time, then switch to another. The responses of the subjects are then compared using matched-pair methods. In an experiment to compare two pain relievers, seven subjects took one pain reliever for two weeks, then switched to the other. They rated their pain level from 1 to 10, with larger numbers representing higher levels of pain. Can you conclude that...
Q: Two surgical procedures are widely used to treat a certain type of cancer. To compare...
Q: Two surgical procedures are widely used to treat a certain type of cancer. To compare the success rates of the two procedures, random samples of the two types of surgical patients were obtained and the numbers of patients who showed no recurrence of the disease after a 1-year period were recorded. The data are shown in the table. A test at the 0.05 level of significance is conducted to test whether there is a difference in the success rates...
A crossover trial is a type of experiment used to compare two drugs. Subjects take one...
A crossover trial is a type of experiment used to compare two drugs. Subjects take one drug for a period of time, then switch to the other. The responses of the subjects are then compared using matched-pair methods. In an experiment to compare two pain relievers, seven subjects took one pain reliever for two weeks, then switched to the other. They rated their pain level from 1 to 10, with larger numbers representing higher levels of pain. Can you conclude...
compare the two element boron and copper its group for instance = first ionisation energy (FIE)the...
compare the two element boron and copper its group for instance = first ionisation energy (FIE)the trends decrease down the group
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT