Piata Praca Domowa cz.1

This commit is contained in:
Michał Hołubowicz 2021-01-22 15:34:36 +01:00
parent 05afc88107
commit 4533c50344

34
biblioteka_xml.txt Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE library
[
<!ELEMENT library (storage+)>
<!ELEMENT storage (shelf+)>
<!ATTLIST shelf domain CDATA #REQUIRED>
<!ELEMENT shelf (book*, magazine*)>
<!ELEMENT book (title, author)>
<!ELEMENT magazine (title, author)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
]>
<library>
<storage>
<shelf domain="Test">
<book>
<title> Test </title>
<author> Test Test </author>
</book>
<book>
<title> Test1 </title>
<author> Test Test </author>
</book>
<book>
<title> Test2 </title>
<author> Test Test </author>
</book>
</shelf>
</storage>
</library>