0% found this document useful (0 votes)
61 views5 pages

This Study Resource Was

The document is a DTD that defines the structure of an XML roster file for a donor database. The DTD specifies a root <roster> element that contains multiple <donor> elements, each with child elements for name, address, one or more phone numbers, an optional email, donation amount, donation method, and effective date. The <donor> element also has a required "level" attribute that identifies the donor's membership level.

Uploaded by

jean diallo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views5 pages

This Study Resource Was

The document is a DTD that defines the structure of an XML roster file for a donor database. The DTD specifies a root <roster> element that contains multiple <donor> elements, each with child elements for name, address, one or more phone numbers, an optional email, donation amount, donation method, and effective date. The <donor> element also has a required "level" attribute that identifies the donor's membership level.

Uploaded by

jean diallo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

FOR MORE OF THIS COURSE AND ANY

OTHER COURSES, TEST BANKS,


FINAL EXAMS, AND SOLUTION
MANUALS
CONTACT US
AT [email protected]
DTD is created based
<!--
New Perspectives on XML on the structure
seatrusttxt.dtd is saved as

m
Tutorial 2 created in the

er as
seatrust.dtd and student’s
Case Problem 3 roster.xml file
name and date are in comment

co
eH w
The Save Exotic Animals Trust DTD
Author: Sharon Strattan root element named roster contains

o.
Date: 6/1/2017 several donor elements
rs e
ou urc
Filename: seatrust.dtd Each donor element contains;
Supporting file: roster.xml name, address, phone (one or
-->
more), email (optional), donation,
o

<!ELEMENT roster (donor+)>


method, and effectiveDate
aC s
vi y re

<!ELEMENT donor (name, address, phone+, email?, donation, method, effectiveDate)>


<!ATTLIST donor level (friendship|patron|sponsor|founder) #REQUIRED>

<!ELEMENT name (#PCDATA)> donor element contains a required


<!ELEMENT address (#PCDATA)> attribute named level that identifies
ed d

<!ELEMENT phone (#PCDATA)> the donor level—friendship, patron,


ar stu

<!ATTLIST phone type (home|work|cell) #REQUIRED> sponsor, or founder


<!ELEMENT email (#PCDATA)>
<!ELEMENT donation (#PCDATA)>
<!ELEMENT method (#PCDATA)> phone element contains a required
is

<!ELEMENT effectiveDate (#PCDATA)> attribute named type that identifies the


Th

phone type—home, work, or cell


sh

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>


<!--
New Perspectives on XML
Tutorial 2
Case Problem 3

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

https://www.coursehero.com/file/18422245/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-roster-ASF/
The Save Exotic Animals Trust donor roster
Student name and date is in comment
Author: Sienna Woo
Date: 8/13/17 and file is saved as roster.xml

Filename: roster.xml
Supporting file: seatrust.dtd
-->

<!DOCTYPE roster SYSTEM "seatrust.dtd">

<roster> DTD is applied to roster.xml file


<donor level="founder">
<name>David Brennan</name>
<address>5133 Oak Street data stored in donors.txt file is added as
Windermere, FL 34786</address> the document content and formatted to
<phone type="home">(407) 555-8981</phone> comply with DTD structure
<phone type="cell">(407) 555-8189</phone>

m
<email>[email protected]</email>

er as
<donation>$50,000</donation>

co
<method>phone</method>

eH w
<effectiveDate>9/1/1982</effectiveDate>
</donor>

o.
<donor level="founder"> rs e
ou urc
<name>Cindy Wu</name>
<address>31 Alice Avenue
Windermere, FL 34786</address>
o

<phone type="home">(407) 555-7212</phone>


<email>[email protected]</email>
aC s

<donation>$50,000</donation>
vi y re

<method>phone</method>
<effectiveDate>9/1/1982</effectiveDate>
</donor>
ed d

<donor level="sponsor">
ar stu

<name>David Olson</name>
<address>5133 Oak Street
Windermere, FL 34786</address>
<phone type="home">(407) 555-8981</phone>
is

<phone type="cell">(407) 555-8189</phone>


Th

<email>[email protected]</email>
<donation>$25,000</donation>
<method>personal</method>
<effectiveDate>7/3/1985</effectiveDate>
sh

</donor>

<donor level="sponsor">
<name>Wilmer Stonehedge</name>
<address>31 Alice Avenue
Windermere, FL 34786</address>
<phone type="cell">(407) 555-7212</phone>

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

https://www.coursehero.com/file/18422245/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-roster-ASF/
<email>[email protected]</email>
<donation>$25,000</donation>
<method>personal</method>
<effectiveDate>10/3/1994</effectiveDate>
</donor>

<donor level="patron">
<name>Lee Unwin</name>
<address>451 Unwin Ct.
Orlando, FL 32801</address>
<phone type="cell">(534) 555-9082</phone>
<email>[email protected]</email>
<donation>$18,000</donation>
<method>personal</method>
<effectiveDate>11/1/1998</effectiveDate>
</donor>

m
er as
<donor level="patron">

co
<name>Jane Whitney</name>

eH w
<address>87 Hilltop Drive
Windermere, FL 34786</address>

o.
<phone type="work">(534) 555-7493</phone>
rs e
<donation>$15,000</donation>
ou urc
<method>personal</method>
<effectiveDate>11/1/1998</effectiveDate>
</donor>
o

<donor level="patron">
aC s

<name>Andrew Sanchez</name>
vi y re

<address>891 Lindon Lane


Windermere, FL 34786</address>
<phone type="cell">(407) 555-4313</phone>
<email>[email protected]</email>
ed d

<donation>$15,000</donation>
ar stu

<method>personal</method>
<effectiveDate>3/4/2000</effectiveDate>
</donor>
is

<donor level="friendship">
Th

<name>Gary Windt</name>
<address>55 Hawking Street
Windermere, FL 34786</address>
<phone type="home">(407) 555-9939</phone>
sh

<email>[email protected]</email>
<donation>$1000</donation>
<method>phone</method>
<effectiveDate>3/4/2000</effectiveDate>
</donor>

<donor level="friendship">

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

https://www.coursehero.com/file/18422245/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-roster-ASF/
<name>Cynthia Browne</name>
<address>71 Circuit Ct.
Orlando, FL 32801</address>
<phone type="cell">(407) 555-3813</phone>
<email>[email protected]</email>
<donation>$1000</donation>
<method>phone</method>
<effectiveDate>3/4/2000</effectiveDate>
</donor>

<donor level="friendship">
<name>Howard Li</name>
<address>4312 East Oak Avenue
Orlando, FL 32801</address>
<phone type="home">(407) 555-3921</phone>
<donation>$1000</donation>
<method>mail</method>

m
<effectiveDate>3/4/2011</effectiveDate>

er as
</donor>

co
eH w
<donor level="friendship">
<name>Uma Thu</name>

o.
<address>25 Longton Lane
rs e
Windermere, FL 34786</address>
ou urc
<phone type="cell">(407) 555-8730</phone>
<donation>$1000</donation>
<method>personal</method>
o

<effectiveDate>4/4/2012</effectiveDate>
</donor>
aC s
vi y re

<donor level="friendship">
<name>Alan Wilkes</name>
<address>321 Ashburn
Orlando, FL 32801</address>
ed d

<phone type="home">(407) 555-1181</phone>


ar stu

<email>[email protected]</email>
<donation>$500</donation>
<method>mail</method>
<effectiveDate>1/4/2012</effectiveDate>
is

</donor>
Th

<donor level="friendship">
<name>Steve Bones</name>
<address>900 Lawton Street
sh

Orlando, FL 32801</address>
<phone type="cell">(407) 555-5434</phone>
<donation>$500</donation>
<method>personal</method>
<effectiveDate>9/14/2012</effectiveDate>
</donor>

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

https://www.coursehero.com/file/18422245/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-roster-ASF/
<donor level="friendship">
<name>Jeri White</name>
<address>Hawkes Lane
Windermere, FL 89211</address>
<phone type="cell">(542) 555-8828</phone>
<email>[email protected]</email>
<donation>$300</donation>
<method>phone</method>
<effectiveDate>12/14/2012</effectiveDate>
</donor>

<donor level="friendship">
<name>Tom Thomas</name>
<address>Rigel Avenue
Apopka, FL 32703</address>
<phone type="home">(531) 555-8311</phone>
<donation>$100</donation>

m
<method>phone</method>

er as
<effectiveDate>2/14/2012</effectiveDate>

co
</donor>

eH w
</roster>

o.
rs e
ou urc
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:31:37 GMT -05:00

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

You might also like