summaryrefslogtreecommitdiff
path: root/Year_2/Databases/libri.dtd
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-02-09 21:35:03 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-02-09 21:35:03 +0100
commit5ec97dc1ea4a8eec206a908cbb2b8552301a7f35 (patch)
tree4c5c38ca29b713d1c6553a45e9afa1c6a0191655 /Year_2/Databases/libri.dtd
parentc670e0583e5468646ab42903c95a80662d96cc89 (diff)
databases: xml exercise
Diffstat (limited to 'Year_2/Databases/libri.dtd')
-rw-r--r--Year_2/Databases/libri.dtd10
1 files changed, 10 insertions, 0 deletions
diff --git a/Year_2/Databases/libri.dtd b/Year_2/Databases/libri.dtd
new file mode 100644
index 0000000..fb0a018
--- /dev/null
+++ b/Year_2/Databases/libri.dtd
@@ -0,0 +1,10 @@
+<!ELEMENT libri (libro)>
+<!ELEMENT libro (autore+, titolo, isbn, introduzione, capitoli)>
+<!ELEMENT autore (#PCDATA)>
+<!ELEMENT titolo (#PCDATA)>
+<!ELEMENT isbn (#PCDATA)>
+<!ELEMENT introduzione (#PCDATA)>
+<!ELEMENT capitoli (capitolo+)>
+<!ELEMENT capitolo (numero, titolo, testo)>
+<!ELEMENT numero (#PCDATA)>
+<!ELEMENT testo (#PCDATA)>