homework 5

Introduction to Computer science homework
This commit is contained in:
Mohammad Mehadi Hasan 2019-01-31 22:27:02 +00:00
parent 6c359669a2
commit 66aebb3782

69
hw05.xml Normal file
View File

@ -0,0 +1,69 @@
<?xml version="1.0"?>
<!DOCTYPE shop [
<!ELEMENT shop (department)>
<!ELEMENT department (shelf,shelf,shelf)>
<!ELEMENT shelf (product,product)>
<!ATTLIST shelf type CDATA "groceries">
<!ATTLIST shelf type CDATA "cloth">
<!ATTLIST shelf type CDATA "accessories">
<!ELEMENT product (name,price)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT price (#PCDATA)>
]>
<shop>
<department>
<shelf type="groceries">
<product>
<name>toothpaste</name>
<price>10.99 pln</price>
</product>
<product>
<name>shampoo</name>
<price>11 pln</price>
</product>
</shelf>
<shelf type="cloth">
<product>
<name>T-shirt</name>
<price>13.99 pln</price>
</product>
<product>
<name>pant</name>
<price>30 pln</price>
</product>
</shelf>
<shelf type="accessories">
<product>
<name>sunglass</name>
<price>80 pln</price>
</product>
<product>
<name>bracelet</name>
<price>100 pln</price>
</product>
</shelf>
</department>
</shop>