Case-based Critical Thinking Questions
Case 3-1
Judy wants to be able to validate the XML documents that she uses for recipes. These documents include numeric elements that specify ingredient amounts and cooking times, so you recommend that she use a schema instead of a DTD, and you teach her some of the key facts about schemas.
Judy has an attribute called "recipeType" that she uses to record whether the recipe is for an appetizer, entree, dessert, or other type of dish. This attribute only contains text. Which of the following would be a valid XML Schema definition for this attribute?

A. recipeType
B.
C. recipeType
D.


Answer: B

Computer Science & Information Technology

You might also like to view...

To make a filled rectangle use the syntax:

a) FillRectangle(Pen p, Integer x, Integer y, Integer width, Integer height) b) DrawRectangle(Pen p, Integer x, Integer y, Integer width, Integer height) c) FillRectangle(Brush b, Integer x, Integer y, Integer width, Integer height) d) DrawRectangle(Brush b, Integer x, Integer y, Integer width, Integer height)

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. An XML DTD is much more powerful than a schema. 2. Bar codes appear on any person or object that needs to be checked into and out of any kind of inventory system. 3. Radio frequency identification allows the automatic collection of data using tags or transponders that contain a chip and an antenna. 4. There are three main problems that can occur with input transactions: submitting the wrong data to the system, submission of data by an unauthorized person, or asking the system to perform an unacceptable function.

Computer Science & Information Technology

What is B element?

What will be an ideal response?

Computer Science & Information Technology

A database is divided into separate tables.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology