From 5ec97dc1ea4a8eec206a908cbb2b8552301a7f35 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 9 Feb 2021 21:35:03 +0100 Subject: databases: xml exercise --- Year_2/Databases/libri_ex1.xquery | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Year_2/Databases/libri_ex1.xquery (limited to 'Year_2/Databases/libri_ex1.xquery') diff --git a/Year_2/Databases/libri_ex1.xquery b/Year_2/Databases/libri_ex1.xquery new file mode 100644 index 0000000..694c65a --- /dev/null +++ b/Year_2/Databases/libri_ex1.xquery @@ -0,0 +1,2 @@ +for $libri in doc("libri.xml")//libro +return count($libri//capitolo) -- cgit v1.2.3-18-g5258