Use XML to represent the contents of the Student relation in Figure 3.2. Specify a DTD appropriate for this document. Do not use the representation proposed by the SQL/XML speci?cation discussed in Section 15.4.4.
What will be an ideal response?
Two representations are reasonable. One uses elements only:
s111111111 John Doe
123 Main St.Freshman
.... and similarly for other students ...
and the other uses attributes:
Address="123 Main St." Status="Freshman"/>
...........
The DTD for the ?rst representation is:
]>
For the second representation, the DTD can be:
Id ID #REQUIRED
Name CDATA #REQUIRED
Address CDATA #IMPLIED
Status CDATA #IMPLIED>
]>
Computer Science & Information Technology
You might also like to view...
Apps already installed on a SharePoint site can be viewed on the Site Contents page
Indicate whether the statement is true or false
Computer Science & Information Technology
Match the following terms to their meanings:
I. user types data and is allowed to change the format II. user enters data but is not allowed to change the format III. user picks a choice from a list but then modifies the item name IV. user selects from a list of predefined items V. user selects an item by clicking the box that displays beside the item A. Plain Text control B. Drop-Down List control C. Combo Box control D. Check Box control E. Rich Text control
Computer Science & Information Technology