Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Creating an XML Compound Document and validating it with DTD* Create 2 XML vocabularies teams.xml , for the team series, and cars.xml , for the

Creating an XML Compound Document and validating it with DTD*

Create 2 XML vocabularies teams.xml, for the team series, and cars.xml, for the cars available for the racing team based on the description provided in Figure 1.

(Note: You should show a minimum of 2 teams in teams.xml and for cars.xml, define each car which you define in teams.xml since both the namespaces shown below are connected to each other through cars. Also remember that one car can belong to more than 1 team. Dont forget to include namespaces for both xml vocabularies. )

Related text: page 71-80 of the XML book

Create a souths.xml master document, see the file relationship in Figure 2 that:

Contains an internal DTD for the teams and cars name spaces;

Uses entities to read information from different documents into the compound document.

image text in transcribed

Figure 1: Structure of the compound document

Recommended Reading: Fig 2-14 on page 95

(Note: Both carID and teamID could be considered as required attributes and the elements of both team and cars could use PCDATA content model. Use ENTITY to make reference between the files. Related text: page 108 in the book.)

image text in transcribed

Figure 2: Files relationship for the compound document

racing teams team tid cars teams namespace title description series cars car cid team cars namespace title model driver racing teams team tid cars teams namespace title description series cars car cid team cars namespace title model driver

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions