This Study Resource Was
This Study Resource Was
m
New Perspectives on XML south.xml, and teams.xml, respectively
er as
Tutorial 2 and student’s name and today’s date is in
co
Case Problem 4
eH w
the comment section of each file
o.
South Racing teams list
Author: Danika Francis rs e
ou urc
Date: 3/1/2017
Filename: teams.xml
o
-->
vi y re
<t:title>Rodas Motorsports</t:title>
<t:description>#1 Team in racing</t:description>
<t:series>Indy</t:series>
is
</t:team>
Th
<t:team tid="t105"
cars="nes201 gda100-5 gma005-2 sob-450V4 dej01-003">
<t:title>SAM Racing</t:title>
<t:description>Top 10 over last 5 years</t:description>
sh
<t:series>Nascar</t:series>
</t:team>
</t:teams>
This study source was downloaded by 100000826614564 from CourseHero.com on 05-23-2021 07:17:35 GMT -05:00
https://www.coursehero.com/file/18422240/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-2/
<!--
New Perspectives on XML
Tutorial 2
Case Problem 4
m
<c:title>Straight Away</c:title>
er as
<c:model>Nissan</c:model>
co
<c:driver>indy</c:driver>
eH w
</c:car>
o.
rs e
<c:car cid="gda100-5" team="t205 t105">
ou urc
<c:title>Quick Start</c:title>
<c:model>General Motors</c:model>
<c:driver>indy</c:driver>
o
</c:car>
aC s
vi y re
</c:car>
ar stu
<c:model>Ford</c:model>
<c:driver>412</c:driver>
Th
</c:car>
<c:model>Nissan</c:model>
<c:driver>indy</c:driver>
</c:car>
This study source was downloaded by 100000826614564 from CourseHero.com on 05-23-2021 07:17:35 GMT -05:00
https://www.coursehero.com/file/18422240/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-2/
<c:model>General Motors</c:model>
<c:driver>278</c:driver>
</c:car>
m
<!--
er as
New Perspectives on XML
co
Tutorial 2
eH w
Case Problem 4
o.
South Racing summary rs e
ou urc
Author: Danika Francis
Date: 3/1/2017
o
Filename: south.xml
aC s
<!ELEMENT t:team (t:title, t:description, t:series)> The team element has been added,
is
https://www.coursehero.com/file/18422240/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-2/
<!ATTLIST c:car cid ID #REQUIRED>
<!ATTLIST c:car team IDREFS #REQUIRED>
m
&teamsList; addedtotothe
entities are added theracing
document, belonging to
element.
er as
&carsList; the default namespace
co
http://example.com/southracing.
eH w
</racing>
o.
rs e
Following is a second copy of lines containing the internal DTD to prevent callouts from
ou urc
crowding excessively
<!DOCTYPE racing
o
[
aC s
http://example.com/southracing/teams
<!ATTLIST t:team cars IDREFS #REQUIRED> subset has been added.
ar stu
<!ELEMENT c:car (c:title, c:model, c:driver)> The cars element is added, containing
sh
<!ATTLIST c:car cid ID #REQUIRED> at least one child element named car.
<!ATTLIST c:car team IDREFS #REQUIRED>
The car element is added, containing
<!ELEMENT c:title (#PCDATA)> the sequence of child elements: title,
<!ELEMENT c:model (#PCDATA)> model, and driver.
<!ELEMENT c:driver (#PCDATA)>
This study source was downloaded by 100000826614564 from CourseHero.com on 05-23-2021 07:17:35 GMT -05:00
https://www.coursehero.com/file/18422240/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-2/
<!ELEMENT racing (t:teams, c:cars)> The title, model, and driver elements
<!ATTLIST racing xmlns CDATA #FIXED "http://example.com/southracing">
are added, containing parsed
character data.
<!ENTITY teamsList SYSTEM "teams.xml">
<!ENTITY carsList SYSTEM "cars.xml">
]>
The racing element containing two
An external entity is added child elements t:teams and c:cars, is
named teamsList pointing to added.
the teams.xml file.
An external entity is added named
carsList pointing to the cars.xml file.
m
er as
co
eH w
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:17:35 GMT -05:00
https://www.coursehero.com/file/18422240/Solution-Manual-for-New-Perspectives-on-XML-Comprehensive-3rd-Edition-by-Carey-2/
Powered by TCPDF (www.tcpdf.org)