summaryrefslogtreecommitdiff
path: root/Year_2/Databases/verbale.dtd
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-02-06 22:41:59 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-02-06 22:41:59 +0100
commitc670e0583e5468646ab42903c95a80662d96cc89 (patch)
tree9171427b2752f36969f01bb334555e652eb7b039 /Year_2/Databases/verbale.dtd
parentbcf585b1cfba4354989c828a3ecb3168f3eae8b9 (diff)
databases: add xml exercise
Diffstat (limited to 'Year_2/Databases/verbale.dtd')
-rw-r--r--Year_2/Databases/verbale.dtd15
1 files changed, 15 insertions, 0 deletions
diff --git a/Year_2/Databases/verbale.dtd b/Year_2/Databases/verbale.dtd
new file mode 100644
index 0000000..c64e107
--- /dev/null
+++ b/Year_2/Databases/verbale.dtd
@@ -0,0 +1,15 @@
+<!ELEMENT verbali (verbale)*>
+<!ELEMENT verbale (studente, esame)>
+<!ELEMENT studente (nome+, cognome+)>
+<!ELEMENT nome (#PCDATA)>
+<!ELEMENT cognome (#PCDATA)>
+<!ATTLIST studente
+ cdl CDATA #REQUIRED
+ matr CDATA #REQUIRED
+>
+<!ELEMENT esame (materia, docente, voto, lode?, data)>
+<!ELEMENT materia (#PCDATA)>
+<!ELEMENT docente (#PCDATA)>
+<!ELEMENT voto (#PCDATA)>
+<!ELEMENT lode (#PCDATA)>
+<!ELEMENT data (#PCDATA)>