customer.html
<html>
<head><title>Customers</title>
<body>
<xml id="Customer_Data"
src="customer.xml"></xml>
<p id="Page_Header">Fall River
Store</p>
<p id="Sub_Header">112 Main
Street<br>Fall River, MA</p>
<table>
<tr>
<td>Customer Id:</td>
<td><span datasrc="#Customer_Data"
datafld="custid"></span></td>
</tr>
<tr>
<td>Name:</td>
<td><span datasrc="#Customer_Data"
datafld="name"></span></td>
</tr>
<tr>
<td>Address:</td>
<td><span datasrc="#Customer_Data"
datafld="addr"></span></td>
</tr>
<tr>
<td>City:</td>
<td><span datasrc="#Customer_Data"
datafld="city"></span></td>
</tr>
<tr>
<td>State:</td>
<td><span datasrc="#Customer_Data"
datafld="state"></span></td>
</tr>
<tr>
<td>Zip:</td>
<td><span datasrc="#Customer_Data"
datafld="zip"></span></td>
</tr>
</table>
</body>
</html>
customer.xml
<?xml version="1.0"?>
<!DOCTYPE customer [
<!ELEMENT customer (custid,name,addr,city,state,zip)>
<!ELEMENT custid
(#PCDATA)>
<!ELEMENT name
(#PCDATA)>
<!ELEMENT addr (#PCDATA)>
<!ELEMENT city
(#PCDATA)>
<!ELEMENT state
(#PCDATA)>
<!ELEMENT zip
(#PCDATA)>
]>
<customer>
<custid>11111</custid>
<name>Susan Ash</name>
<addr>12 Elm St</addr>
<city>Braintree</city>
<state>MA</state>
<zip>02184</zip>
</customer>
customer1.html
<html>
<head><title>Customers</title>
<body>
<xml id="Customer_Data"
src="customer1.xml"></xml>
<p id="Page_Header">Fall River
Store</p>
<p id="Sub_Header">112 Main
Street<br>Fall River, MA</p>
<table>
<tr>
<td>Customer Id:</td>
<td><span datasrc="#Customer_Data"
datafld="custid"></span></td>
</tr>
<tr>
<td>Name:</td>
<td><span datasrc="#Customer_Data"
datafld="name"></span></td>
</tr>
<tr>
<td>Address:</td>
<td><span datasrc="#Customer_Data"
datafld="addr"></span></td>
</tr>
<tr>
<td>City:</td>
<td><span datasrc="#Customer_Data"
datafld="city"></span></td>
</tr>
<tr>
<td>State:</td>
<td><span datasrc="#Customer_Data"
datafld="state"></span></td>
</tr>
<tr>
<td>Zip:</td>
<td><span datasrc="#Customer_Data"
datafld="zip"></span></td>
</tr>
</table>
<br /><br /><br />
<button
onClick="Customer_Data.recordset.moveFirst()">First</button>
<button
onClick="Customer_Data.recordset.movePrevious();
if (Customer_Data.recordset.BOF) Customer_Data.recordset.moveFirst()">
Previous</button>
<button
onClick="Customer_Data.recordset.moveNext();
if (Customer_Data.recordset.EOF) Customer_Data.recordset.moveLast()">
Next</button>
<button
onClick="Customer_Data.recordset.moveLast()">Last</button>
</body>
</html>
customer1.xml
<?xml version="1.0"?>
<!DOCTYPE customers [
<!ELEMENT customers (customer+)>
<!ELEMENT customer (custid,name,addr,city,state,zip)>
<!ELEMENT custid
(#PCDATA)>
<!ELEMENT name
(#PCDATA)>
<!ELEMENT addr
(#PCDATA)>
<!ELEMENT city
(#PCDATA)>
<!ELEMENT state
(#PCDATA)>
<!ELEMENT zip
(#PCDATA)>
]>
<customers>
<customer>
<custid>11111</custid>
<name>Susan Ash</name>
<addr>12 Elm St</addr>
<city>Braintree</city>
<state>MA</state>
<zip>02184</zip>
</customer>
<customer>
<custid>22222</custid>
<name>Stephen Daniels</name>
<addr>45 East St</addr>
<city>Brooklyn</city>
<state>NY</state>
<zip>11211</zip>
</customer>
</customers>
customer2.html
<html>
<head><title>Customers</title>
<body>
<xml id="Customer_Data"
src="customer2.xml"></xml>
<p id="Page_Header">Fall River
Store</p>
<p id="Sub_Header">112 Main Street<br>Fall
River, MA</p>
<table>
<tr>
<td>Customer Id:</td>
<td><span datasrc="#Customer_Data"
datafld="customer.custid"></span></td>
</tr>
<tr>
<td>Name:</td>
<td><span datasrc="#Customer_Data"
datafld="name"></span></td>
</tr>
<tr>
<td>Address:</td>
<td><span datasrc="#Customer_Data"
datafld="addr"></span></td>
</tr>
<tr>
<td>City:</td>
<td><span datasrc="#Customer_Data"
datafld="city"></span></td>
</tr>
<tr>
<td>State:</td>
<td><span datasrc="#Customer_Data" datafld="state"></span></td>
</tr>
<tr>
<td>Zip:</td>
<td><span datasrc="#Customer_Data"
datafld="zip"></span></td>
</tr>
</table>
<br /><br /><br />
<button
onClick="Customer_Data.recordset.moveFirst()">First</button>
<button
onClick="Customer_Data.recordset.movePrevious();
if (Customer_Data.recordset.BOF)
Customer_Data.recordset.moveFirst()">
Previous</button>
<button
onClick="Customer_Data.recordset.moveNext();
if (Customer_Data.recordset.EOF)
Customer_Data.recordset.moveLast()">
Next</button>
<button
onClick="Customer_Data.recordset.moveLast()">Last</button>
</body>
</html>
customer2.xml
<?xml version="1.0"?>
<!DOCTYPE customers [
<!ELEMENT
customers (customer+)>
<!ELEMENT customer (name,addr,city,state,zip)>
<!ATTLIST customer custid ID #REQUIRED>
<!ELEMENT name
(#PCDATA)>
<!ELEMENT addr
(#PCDATA)>
<!ELEMENT city
(#PCDATA)>
<!ELEMENT state
(#PCDATA)>
<!ELEMENT
zip (#PCDATA)>
]>
<customers>
<customer
custid="A1111">
<name>Susan Ash</name>
<addr>12 Elm St</addr>
<city>Braintree</city>
<state>MA</state>
<zip>02184</zip>
</customer>
<customer
custid="B2222">
<name>Stephen Daniels</name>
<addr>45
East St</addr>
<city>Brooklyn</city>
<state>NY</state>
<zip>11211</zip>
</customer>
</customers>
customer3.html
<html>
<head><title>Customers</title>
<body>
<xml id="Customer_Data"
src="customer3.xml"></xml>
<p id="Page_Header">Fall River Store</p>
<p id="Sub_Header">112 Main
Street<br>Fall River, MA</p>
<table>
<tr>
<td>Customer Id:</td>
<td><span datasrc="#Customer_Data"
datafld="custid"></span></td>
</tr>
<tr>
<td>Customer Title:</td>
<td><span datasrc="#Customer_Data" datafld="title"></span></td>
</tr>
<tr>
<td>Name:</td>
<td><span datasrc="#Customer_Data"
datafld="name"></span></td>
</tr>
<tr>
<td>Address:</td>
<td><span datasrc="#Customer_Data"
datafld="addr"></span></td>
</tr>
<tr>
<td>City:</td>
<td><span
datasrc="#Customer_Data"
datafld="city"></span></td>
</tr>
<tr>
<td>State:</td>
<td><span datasrc="#Customer_Data"
datafld="state"></span></td>
</tr>
<tr>
<td>Zip:</td>
<td><span datasrc="#Customer_Data"
datafld="zip"></span></td>
</tr>
</table>
<br /><br /><br />
<button
onClick="Customer_Data.recordset.moveFirst()">First</button>
<button
onClick="Customer_Data.recordset.movePrevious();
if (Customer_Data.recordset.BOF) Customer_Data.recordset.moveFirst()">
Previous</button>
<button
onClick="Customer_Data.recordset.moveNext();
if (Customer_Data.recordset.EOF)
Customer_Data.recordset.moveLast()">
Next</button>
<button
onClick="Customer_Data.recordset.moveLast()">Last</button>
</body>
</html>
customer3.xml
<?xml version="1.0"?>
<!DOCTYPE customers [
<!ELEMENT customers (customer+)>
<!ELEMENT customer (custid,title,name,addr,city,state,zip)>
<!ELEMENT custid (#PCDATA)>
<!ELEMENT title EMPTY>
<!ATTLIST title ntitl (Mr.|Mrs.|Ms.) #IMPLIED>
<!ELEMENT name
(#PCDATA)>
<!ELEMENT addr
(#PCDATA)>
<!ELEMENT city
(#PCDATA)>
<!ELEMENT state
(#PCDATA)>
<!ELEMENT zip
(#PCDATA)>
]>
<customers>
<customer>
<custid>11111</custid>
<title
ntitl="Ms." />
<name>Susan Ash</name>
<addr>12 Elm St</addr>
<city>Braintree</city>
<state>MA</state>
<zip>02184</zip>
</customer>
<customer>
<custid>22222</custid>
<title
ntitl="Mr." />
<name>Stephen
Daniels</name>
<addr>45 East St</addr>
<city>Brooklyn</city>
<state>NY</state>
<zip>11211</zip>
</customer>
</customers>
donor.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors
[
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1
Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann Smith</contact>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger Brown</contact>
</donor>
</donors>
donor1.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors
[
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?, donations)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ELEMENT donations (donation+)>
<!ELEMENT donation (datecont, amtcont)>
<!ATTLIST donation donationid ID #REQUIRED>
<!ATTLIST donation givenby IDREF #REQUIRED>
<!ELEMENT datecont (#PCDATA)>
<!ELEMENT amtcont (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A123001" givenby =
"A1111">
<datecont>7/5/2000</datecont>
<amtcont>1200</amtcont>
</donation>
<donation donationid="B124001" givenby =
"A1111">
<datecont>5/14/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
<donations>
<donation donationid="A123002" givenby =
"B2222">
<datecont>5/15/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1 Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A123003" givenby =
"C3333">
<datecont>1/5/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="A123004" givenby =
"C3333">
<datecont>2/20/2000</datecont>
<amtcont>600</amtcont>
</donation>
<donation donationid="B124002" givenby =
"C3333">
<datecont>1/12/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C125001" givenby =
"C3333">
<datecont>5/5/2000</datecont>
<amtcont>100</amtcont>
</donation>
</donations>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger
Brown</contact>
<donations>
<donation donationid="A123005" givenby =
"D4444">
<datecont>1/1/2000</datecont>
<amtcont>500</amtcont>
</donation>
<donation donationid="A124003" givenby =
"D4444">
<datecont>5/1/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C125002" givenby =
"D4444">
<datecont>8/1/2000</datecont>
<amtcont>250</amtcont>
</donation>
</donations>
</donor>
</donors>
donor2.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors
[
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?, donations)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ELEMENT donations (donation+)>
<!ELEMENT donation (driveno, datecont,
amtcont)>
<!ATTLIST donation donationid ID #REQUIRED>
<!ATTLIST donation givenby IDREF #REQUIRED>
<!ELEMENT driveno (#PCDATA)>
<!ELEMENT datecont (#PCDATA)>
<!ELEMENT amtcont (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A001" givenby = "A1111">
<driveno>A123</driveno>
<datecont>7/5/2000</datecont>
<amtcont>1200</amtcont>
</donation>
<donation donationid="B001" givenby = "A1111">
<driveno>B124</driveno>
<datecont>5/14/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
<donations>
<donation donationid="A002" givenby = "B2222">
<driveno>A123</driveno>
<datecont>5/15/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1
Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann
Smith</contact>
<donations>
<donation donationid="A003" givenby = "C3333">
<driveno>A123</driveno>
<datecont>1/5/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="A004" givenby = "C3333">
<driveno>A123</driveno>
<datecont>2/20/2000</datecont>
<amtcont>600</amtcont>
</donation>
<donation donationid="B002" givenby = "C3333">
<driveno>B124</driveno>
<datecont>1/12/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C001" givenby = "C3333">
<driveno>C125</driveno>
<datecont>5/5/2000</datecont>
<amtcont>100</amtcont>
</donation>
</donations>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger Brown</contact>
<donations>
<donation donationid="A123005" givenby =
"D4444">
<driveno>A123</driveno>
<datecont>1/1/2000</datecont>
<amtcont>500</amtcont>
</donation>
<donation donationid="B003" givenby = "D4444">
<driveno>B124</driveno>
<datecont>5/1/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C002" givenby = "D4444">
<driveno>C125</driveno>
<datecont>8/1/2000</datecont>
<amtcont>250</amtcont>
</donation>
</donations>
</donor>
</donors>
donor3.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors SYSTEM "drive.dtd"
[
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?, donations)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ELEMENT donations (donation+)>
<!ELEMENT donation (driveno, datecont,
amtcont)>
<!ATTLIST donation donationid ID #REQUIRED>
<!ATTLIST donation givenby IDREF #REQUIRED>
<!ELEMENT driveno (#PCDATA)>
<!ELEMENT datecont (#PCDATA)>
<!ELEMENT amtcont (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A001" givenby = "A1111">
<driveno>&A123;</driveno>
<datecont>7/5/2000</datecont>
<amtcont>1200</amtcont>
</donation>
<donation donationid="B001" givenby = "A1111">
<driveno>&B124;</driveno>
<datecont>5/14/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
<donations>
<donation donationid="A002" givenby = "B2222">
<driveno>&A123;</driveno>
<datecont>5/15/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1
Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A003" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>1/5/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="A004" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>2/20/2000</datecont>
<amtcont>600</amtcont>
</donation>
<donation donationid="B002" givenby = "C3333">
<driveno>&B124;</driveno>
<datecont>1/12/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C001" givenby = "C3333">
<driveno>&C125;</driveno>
<datecont>5/5/2000</datecont>
<amtcont>100</amtcont>
</donation>
</donations>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger Brown</contact>
<donations>
<donation donationid="A123005" givenby = "D4444">
<driveno>&A123;</driveno>
<datecont>1/1/2000</datecont>
<amtcont>500</amtcont>
</donation>
<donation donationid="B003" givenby = "D4444">
<driveno>&B124;</driveno>
<datecont>5/1/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C002" givenby = "D4444">
<driveno>&C125;</driveno>
<datecont>8/1/2000</datecont>
<amtcont>250</amtcont>
</donation>
</donations>
</donor>
</donors>
donor3a.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors SYSTEM
"http://www32.brinkster.com/pgrocer/DTD/drive.dtd"
[
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?, donations)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ELEMENT donations (donation+)>
<!ELEMENT donation (driveno, datecont,
amtcont)>
<!ATTLIST donation donationid ID #REQUIRED>
<!ATTLIST donation givenby IDREF #REQUIRED>
<!ELEMENT driveno (#PCDATA)>
<!ELEMENT datecont (#PCDATA)>
<!ELEMENT amtcont (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation
donationid="A001" givenby = "A1111">
<driveno>&A123;</driveno>
<datecont>7/5/2000</datecont>
<amtcont>1200</amtcont>
</donation>
<donation donationid="B001" givenby = "A1111">
<driveno>&B124;</driveno>
<datecont>5/14/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
<donations>
<donation donationid="A002" givenby = "B2222">
<driveno>&A123;</driveno>
<datecont>5/15/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1
Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A003" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>1/5/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="A004" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>2/20/2000</datecont>
<amtcont>600</amtcont>
</donation>
<donation donationid="B002" givenby = "C3333">
<driveno>&B124;</driveno>
<datecont>1/12/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C001" givenby = "C3333">
<driveno>&C125;</driveno>
<datecont>5/5/2000</datecont>
<amtcont>100</amtcont>
</donation>
</donations>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger Brown</contact>
<donations>
<donation donationid="A123005" givenby =
"D4444">
<driveno>&A123;</driveno>
<datecont>1/1/2000</datecont>
<amtcont>500</amtcont>
</donation>
<donation donationid="B003" givenby = "D4444">
<driveno>&B124;</driveno>
<datecont>5/1/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C002" givenby = "D4444">
<driveno>&C125;</driveno>
<datecont>8/1/2000</datecont>
<amtcont>250</amtcont>
</donation>
</donations>
</donor>
</donors>
donor4.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE donors
[
<!ENTITY A123 "Childrens Drive">
<!ENTITY B124 "Lunch Drive">
<!ENTITY C125 "Shelter Drive">
<!ELEMENT donors (donor+)>
<!ELEMENT donor (name, address, yrfirst?,
contact?, donations)>
<!ATTLIST donor idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ATTLIST name title (Mr. | Mrs. | Ms. | Dr.)
#IMPLIED>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrfirst (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ELEMENT donations (donation+)>
<!ELEMENT donation (driveno, datecont,
amtcont)>
<!ATTLIST donation donationid ID #REQUIRED>
<!ATTLIST donation givenby IDREF #REQUIRED>
<!ELEMENT driveno (#PCDATA)>
<!ELEMENT datecont (#PCDATA)>
<!ELEMENT amtcont (#PCDATA)>
]>
<donors>
<donor
idno="A1111">
<name
title="Mr.">John Doe</name>
<address>
<![CDATA[
123
Elm St
Braintree, MA 02184
]]>
</address>
<yrfirst>1995</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A001" givenby = "A1111">
<driveno>&A123;</driveno>
<datecont>7/5/2000</datecont>
<amtcont>1200</amtcont>
</donation>
<donation donationid="B001" givenby = "A1111">
<driveno>&B124;</driveno>
<datecont>5/14/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="B2222">
<name
title="Ms.">Mary Wilson</name>
<address>
<![CDATA[
14
Main St
Fall
River, MA 02770
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>David Costa</contact>
<donations>
<donation donationid="A002" givenby = "B2222">
<driveno>&A123;</driveno>
<datecont>5/15/2000</datecont>
<amtcont>500</amtcont>
</donation>
</donations>
</donor>
<donor
idno="C3333">
<name
title="Ms.">Nancy Taylor</name>
<address>
<![CDATA[
1
Heritage Rd
New
Bedford, MA 02775
]]>
</address>
<yrfirst>1994</yrfirst>
<contact>Ann Smith</contact>
<donations>
<donation donationid="A003" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>1/5/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="A004" givenby = "C3333">
<driveno>&A123;</driveno>
<datecont>2/20/2000</datecont>
<amtcont>600</amtcont>
</donation>
<donation donationid="B002" givenby = "C3333">
<driveno>&B124;</driveno>
<datecont>1/12/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C001" givenby = "C3333">
<driveno>&C125;</driveno>
<datecont>5/5/2000</datecont>
<amtcont>100</amtcont>
</donation>
</donations>
</donor>
<donor
idno="D4444">
<name
title="Mr.">Robert Brooks</name>
<address>
<![CDATA[
45
East St
Weymouth, MA 02176
]]>
</address>
<yrfirst>1996</yrfirst>
<contact>Roger Brown</contact>
<donations>
<donation donationid="A123005" givenby =
"D4444">
<driveno>&A123;</driveno>
<datecont>1/1/2000</datecont>
<amtcont>500</amtcont>
</donation>
<donation donationid="B003" givenby = "D4444">
<driveno>&B124;</driveno>
<datecont>5/1/2000</datecont>
<amtcont>1000</amtcont>
</donation>
<donation donationid="C002" givenby = "D4444">
<driveno>&C125;</driveno>
<datecont>8/1/2000</datecont>
<amtcont>250</amtcont>
</donation>
</donations>
</donor>
</donors>
drive.dtd
<!ENTITY A123 "Childrens Drive">
<!ENTITY B124 "Lunch Drive">
<!ENTITY C125 "Shelter Drive">
student.xml
<?xml version="1.0" ?>
<!-- document type declaration follows -->
<!DOCTYPE students
[
<!ENTITY CRN12345 "CIS44 Internet
Developer">
<!ENTITY CRN23456 "CIS50 Oracle">
<!ENTITY CRN45454 "CIS47 Interactive Web
Sites">
<!ENTITY CRN67890 "CIS49 Internet
Seminar">
<!ELEMENT students (student+)>
<!ELEMENT student (name, address, yrenter?,
major?, option?, credit?, gpa?, courses)>
<!ATTLIST student idno ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT yrenter (#PCDATA)>
<!ELEMENT major (#PCDATA)>
<!ELEMENT option (#PCDATA)>
<!ELEMENT credit (#PCDATA)>
<!ELEMENT gpa (#PCDATA)>
<!ELEMENT courses (course+)>
<!ELEMENT course (coursecrn, datetaken,
grade)>
<!ATTLIST course courseid ID #REQUIRED>
<!ATTLIST course takenby IDREF #REQUIRED>
<!ELEMENT coursecrn (#PCDATA)>
<!ELEMENT datetaken (#PCDATA)
<!ELEMENT grade (#PCDATA)>
]>
<students>
<student idno="A1111">
<name>John Doe</name>
<address>
<![CDATA[
123 Elm St
Braintree, MA 02184
]]>
</address>
<yrenter>1995</yrenter>
<major>CIS</major>
<option>CIW</option>
<credit>45</credit>
<gpa>3.5</gpa>
<courses>
<course courseid="A111112345" takenby =
"A1111">
<coursecrn>&CRN12345;</coursecrn>
<datetaken>Fall2003</datetaken>
<grade>A</grade>
</course>
<course courseid="A1111145454" takenby =
"A1111">
<coursecrn>&CRN45454;</coursecrn>
<datetaken>Fall2003</datetaken>
<grade>A</grade>
</course>
</courses>
</student>
</students>
houses.xml
<?xml version="1.0"?>
<houses
xmlns:xsi="http://www.w3.org/2001/XMLShema-instance"
xsi:noNamespaceSchemaLocation="housesschema.xsd">
<house>
<owner>Susan Smith</owner>
<address>12 Main St</address>
<type>home</type>
<assess>250000</assess>
<built>1980</built>
</house>
<house>
<owner>Donald Costa</owner>
<address>123 Durfee St</address>
<type>business</type>
<assess>300000</assess>
<built>1975</built>
</house>
<house>
<owner>James Richards</owner>
<address>250 East St</address>
<type>home</type>
<assess>500000</assess>
<built>2000</built>
</house>
<house>
<owner>Linda Brooks</owner>
<address>98 Orchid St</address>
<type>home</type>
<assess>450000</assess>
<built>1995</built>
</house>
</houses>
housesschema.xsd
<?xml version="1.0"
encoding="UTF-8"?>
<!-- schema for real estate -->
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="houses"
maxoccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="owner" type="xsd:string"/>
<xsd:element name="address" type="xsd:string"/>
<xsd:element name="type" type="xsd:string"/>
<xsd:element name="assess" type="xsd:string"/>
<xsd:element name="built" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>