464982/biblioteka_xml.txt
2021-01-22 15:34:36 +01:00

34 lines
636 B
Plaintext

<?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>