Professional Documents
Culture Documents
6 XML DTD
6 XML DTD
6 XML DTD
Learning Objectives
● To gain experience creating a DTD file from a relational schema description and writing XPath queries.
Prerequisite
Students have reviewed the course material on XML and tree data models.
`
IS515 Information Modeling
XML DTD and XPath Activity
Group What
Whole class Overview & instructions
Groups meet in their own room Create a DTD file conforming to the constraints.
Generate a DTD definition for the relational schema, taking into account the constraints above.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Tournament [
<!ELEMENT League "(League_Name, League_Type);">
<!ATTLIST League"
League_Type #REQUIRED">
IS515 Information Modeling
XML DTD and XPath Activity
<!ELEMENT (#PCDATA)>
<!ENTITY writer "Writer: Group 3.">
<!ENTITY copyright "">
]>
//Team[@TeamName=”Chambana Moms”]/Players
/League[@Type=”women”]//Team
/Schedule[@Type=”playoff”]/(TeamA | TeamB)