Exam 2: Validating an Xml Document

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Case 2-2 Rosalind wants to add attribute declarations to her DTD, and she turns to you for information about the possible attribute types. -You tell Rosalind about the CDATA attribute type. Which of the following attribute values would NOT be allowed for an attribute of this type?

(Multiple Choice)
4.9/5
(35)

In a(n) _____  subset, the declarations are placed in an external file that is accessed from the XML document.

(Short Answer)
4.8/5
(42)

Because a DTD is not written in the XML language, XML _____  must support the syntax and language requirements needed to interpret DTD code.

(Short Answer)
4.9/5
(29)
Identify the letter of the choice that best matches the phrase or definition.
References content to be used within an XML document
general entity
Enables you to divide a DTD into two parts: one interpreted by parsers, and one containing declarations that parsers ignore
DTDs
Interpreted by XML parsers as a reference to another entity
conditional section
Correct Answer:
Verified
Premises:
Responses:
References content to be used within an XML document
general entity
Enables you to divide a DTD into two parts: one interpreted by parsers, and one containing declarations that parsers ignore
DTDs
Interpreted by XML parsers as a reference to another entity
conditional section
References content that is either nontextual or that cannot be interpreted by an XML parser
notation
This supplies a name for a data type and provides clues about how an application should handle the data
external entity
Most standard vocabularies make these available online for inspection
internal entity
The smaller chunks into which a DTD can be broken
module
Includes its content in the DTD
unparsed entity
Draws its content from an external file
& symbol
Used when you want to insert content into a DTD itself
parameter entity
(Matching)
4.9/5
(29)

  Which of the following is a type of identifier for the location of an external subset like the one in the accompanying figure? Which of the following is a type of identifier for the location of an external subset like the one in the accompanying figure?

(Multiple Choice)
4.7/5
(39)

The _____ value for the content model in an element declaration means the element can contain only parsed character data.

(Multiple Choice)
4.8/5
(32)

Case 2-2 Rosalind wants to add attribute declarations to her DTD, and she turns to you for information about the possible attribute types. -Rosalind wants to declare a "coursenum" attribute, the values of which will be unique within the document. Which attribute type should she use?

(Multiple Choice)
4.8/5
(43)

DTDs do not support _____ , and thus are of limited value in compound documents.

(Short Answer)
4.9/5
(35)

Used in conjunction with an XML parser that supports data validation, a DTD can be used to accomplish what?

(Essay)
4.8/5
(45)

The _____ value for the content model in an element declaration means the element can contain both parsed character data and child elements.

(Multiple Choice)
4.8/5
(33)

A(n) _____ is a collection of rules that define the content and structure of an XML document.

(Multiple Choice)
4.9/5
(40)

It is best not to work with mixed content if you want a tightly structured document.

(True/False)
4.9/5
(37)

Entities can reference content found either in an external file or within the DTD itself.

(True/False)
4.8/5
(44)

  Which of the following is a part into which a DTD like the one in the accompanying figure can be divided? Which of the following is a part into which a DTD like the one in the accompanying figure can be divided?

(Multiple Choice)
4.7/5
(36)

One way to create a valid document is to design a document type definition, or DTD, for the document.

(True/False)
4.8/5
(36)

While very flexible, elements with _____ content do not add much defined structure to a document.

(Multiple Choice)
4.8/5
(31)

An XML element is not limited to either parsed character data or child elements.

(True/False)
4.7/5
(39)

  The DOCTYPE declaration has to be added to the document _____, after the XML declaration and before the document's root element, as shown in the accompanying figure. The DOCTYPE declaration has to be added to the document _____, after the XML declaration and before the document's root element, as shown in the accompanying figure.

(Multiple Choice)
4.8/5
(43)

The _____ symbol indicates that an element occurs at least once.

(Multiple Choice)
4.8/5
(38)

Content referenced by an entity can be either _____ .

(Multiple Choice)
4.8/5
(45)
Showing 61 - 80 of 91
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)