homework 5
Introduction to Computer science homework
This commit is contained in:
parent
6c359669a2
commit
66aebb3782
69
hw05.xml
Normal file
69
hw05.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user