WDI-zadanie/#5.txt

51 lines
837 B
Plaintext
Raw Permalink Normal View History

2021-01-28 20:06:25 +01:00
<?xml version="1.0"?>
<!DOCTYPE shop [
<!ELEMENT shop (department+)>
<!ELEMENT department (shelf+)>
<!ATTLIST department type CDATA #REQUIRED>
<!ELEMENT shelf (item*)>
<!ELEMENT item (name, price)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT price (#PCDATA)>
]>
<shop>
<department type= "groceries">
<shelf>
<item>
<name>pizza</name>
<price>5.99</price>
</item>
<item>
<name>flour</name>
<price>1.99</price>
</item>
</shelf>
</department>
<department type= "stationary">
<shelf>
<item>
<name>notebook</name>
<price>3.99</price>
</item>
<item>
<name>pencil</name>
<price>0.99</price>
</item>
</shelf>
<department type= "clothes">
<shelf>
<item>
<name>dress</name>
<price>19.99</price>
</item>
<item>
<name>hat</name>
<price>29.99</price>
</item>
</shelf>
</department>
</shop>