WDI.homework/05/store.xml
2019-01-21 16:15:39 +01:00

95 lines
3.1 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE store [
<!ELEMENT store (section+)>
<!ELEMENT section (shelf+)>
<!ELEMENT shelf (product*)>
<!ELEMENT product (name, weight*, manufacturer*, price)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT weight (#PCDATA)>
<!ELEMENT manufacturer (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ATTLIST section domain CDATA #REQUIRED>
<!ATTLIST shelf domain CDATA #IMPLIED>
]>
<store>
<section domain="food">
<shelf domain="bread">
<product>
<name>Chleb codzienny</name>
<weight>350g</weight>
<manufacturer>Piekarnia dla Ciebie</manufacturer>
<price>1,99 PLN</price>
</product>
<product>
<name>Kajzerka królewska</name>
<weight>40g</weight>
<manufacturer>Wypieki Babuni</manufacturer>
<price>0,30 PLN</price>
</product>
<product>
<name>Bagietka czosnkowa</name>
<weight>150g</weight>
<manufacturer>Piekarnia dla Ciebie</manufacturer>
<price>2,79 PLN</price>
</product>
</shelf>
<shelf domain="pasta">
<product>
<name>Farfalle 5-jajeczny</name>
<weight>500g</weight>
<manufacturer>Lubella</manufacturer>
<price>2,49 PLN</price>
</product>
<product>
<name>Spaghetti</name>
<weight>200g</weight>
<manufacturer>Nestlè</manufacturer>
<price>2,99 PLN</price>
</product>
</shelf>
<shelf domain="meat">
<product>
<name>Wołowina</name>
<price>29,99 PLN/kg</price>
</product>
</shelf>
</section>
<section domain="papers">
<shelf domain="notebooks">
<product>
<name>Zeszyt A4 60 kartek kratka</name>
<manufacturer>Polidruk</manufacturer>
<price>2,99 PLN</price>
</product>
<product>
<name>Zeszyt A4 96 kartek linia</name>
<manufacturer>Interdruk</manufacturer>
<price>3,99 PLN</price>
</product>
</shelf>
<shelf>
<product>
<name>Segregator 6cm</name>
<manufacturer>Box Office</manufacturer>
<price>8,99 PLN</price>
</product>
</shelf>
</section>
<section domain="wear">
<shelf domain="coats">
<product>
<name>Kurtka zimowa męska</name>
<manufacturer>Tani Armani</manufacturer>
<price>89,99 PLN</price>
</product>
</shelf>
<shelf>
<product>
<name>Czapka &quot;Pawie Pióra&quot;</name>
<manufacturer>Balmain H&amp;M</manufacturer>
<price>1099,99 PLN</price>
</product>
</shelf>
</section>
</store>