Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

NP XML Comprehensive, 3e

Tutorial 2 Quick Check Answers


Session 2.1 Quick Check
1. <!DOCTYPE Inventory SYSTEM "books.dtd">

2. <!ELEMENT book ANY>

3. <!ELEMENT video EMPTY>

m
4. <!ELEMENT book (#PCDATA)>

er as
co
5. <!ELEMENT book (author)>

eH w
o.
6. <!ELEMENT book (author+)>
rs e
ou urc
7. <!ELEMENT part ((partNum | partName), description,

price)>
o
aC s

Session 2.2 Quick Check


vi y re

1. <!ATTLIST book title CDATA #IMPLIED>


ed d

2. <!ATTLIST play type (Romance | Tragedy | History |


ar stu

Comedy) #REQUIRED>
is

3. NMTOKEN types cannot contain blank spaces.


Th

4. <!ATTLIST book ISBN ID #REQUIRED>

5. <!ATTLIST author booksBy IDREFS #IMPLIED>


sh

6. <!ATTLIST book inStock (yes | no) "yes">

Session 2.3 Quick Check

This study source was downloaded by 100000826614564 from CourseHero.com on 05-23-2021 07:42:02 GMT -05:00

https://www.coursehero.com/file/18422249/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-QCA/
1. General entities are used only with the contents of an XML document. Parameter

entities are used only with the contents of a DTD.

2. A parsed entity references text that can be readily interpreted, or parsed, by an

application reading the XML document. An unparsed entity is an entity that

references content that either is nontextual or cannot be interpreted by an XML

parser.

3. <!ENTITY Play "<Title>Hamlet</Title>">

&Play;

m
er as
4. <!ENTITY Plays SYSTEM "plays.xml">

co
eH w
5. <!ENTITY % Works SYSTEM "plays.dtd">

o.
rs e
6. A notation is a resource that an XML parser uses to handle or identify unparsed
ou urc
data.

7. <!ENTITY Portrait SYSTEM "shakespeare.gif" NDATA GIF>


o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000826614564 from CourseHero.com on 05-23-2021 07:42:02 GMT -05:00

https://www.coursehero.com/file/18422249/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-QCA/
Powered by TCPDF (www.tcpdf.org)

You might also like