Someone please help me make a DTD and Schema for the XML Vocabulary code below?
ID: 3802488 • Letter: S
Question
Someone please help me make a DTD and Schema for the XML Vocabulary code below? Picture for what I need help with.
//Vocab1
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="">
<xs:element name="Counrty" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="price" type="xs:decimal"/>
<xs:element name="rating" type="xs:decimal"/>
<Country>Canada</Counrty>
<City>Toranto</City>
<Attractions>
<Attraction>
<name>Hockey Hall of Fame</name>
<location>Brookfield Place 30 Yonge Street</location>
<price>13(CAD)</price>
<rating>4.3/5</rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attrction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
</Attractions>
//Vocab2
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="">
<xs:element name="Counrty" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="price" type="xs:decimal"/>
<xs:element name="rating" type="xs:decimal"/>
<Country>Canada</Counrty>
<City>Toranto</City>
<Resturants>
<Resturant>
<name>Hockey Hall of Fame</name>
<location>Brookfield Place 30 Yonge Street</location>
<price>13(CAD)</price>
<rating>4.3/5</rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Attrction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
</Resturants>
that interests you. Your vocabulary should include th 1. Design our own XML vocabulary for a field of study or other topic following features (included in #3) a. Ele ents containing textual content b. Ele ents containing child elements c. Attributes containing textual context d. X orted entities ML-supp 2. Draw a tree hierarchy using Microsoft Word or sio for this vocabulary. (5) 3. Create an instance document based on your XML vocabulary.(10) 4. Write a DTD to validate your instance document based on your vocabulary. Confirm that your instance document passes validation. (10) 5. Write a schema to validate your instance document. The student may use any schema design of choice. This schema should include the following (15): a. At least one custom data type(5) b. At least one simple type element or attribute(5) c. At least 5 complex type elements (5) 6. Apply your schema to your instance document and verify that your instance document passes validation. (10) 7. Create a second XML vocabulary that relates to your first. Document your vocabulary with a second tree hierachy. (10) 8. Create a namespace for each of your vocabularies. (10 9. Create a compound document combining elements and attributes from both of your vocabularies. (10 10. Create a second schema file to validate the contexts of your second XML vocabulary. Design your choice (10) our combined schemas to your compound document and confirm that the compound document passes validation 1- Apply y (5)Explanation / Answer
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="">
<xs:element name="Counrty" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="price" type="xs:decimal"/>
<xs:element name="rating" type="xs:decimal"/>
<Country>Canada</Counrty>
<City>Toranto</City>
<Attractions>
<Attraction>
<name>Hockey Hall of Fame</name>
<location>Brookfield Place 30 Yonge Street</location>
<price>13(CAD)</price>
<rating>4.3/5</rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attrction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
<Attraction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Attraction>
</Attractions>
//Vocab2
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="">
<xs:element name="Counrty" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="price" type="xs:decimal"/>
<xs:element name="rating" type="xs:decimal"/>
<Country>Canada</Counrty>
<City>Toranto</City>
<Resturants>
<Resturant>
<name>Hockey Hall of Fame</name>
<location>Brookfield Place 30 Yonge Street</location>
<price>13(CAD)</price>
<rating>4.3/5</rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Attrction>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
<Resturant>
<name></name>
<location></location>
<phone></phone>
<price></price>
<rating></rating>
<description></description>
</Resturant>
</Resturants>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.