summaryrefslogtreecommitdiffstats
path: root/Report/Chapter4.tex
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-05-26 21:39:46 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-05-26 21:39:46 (GMT)
commitef54dae17fe6833dabdc7d22cb5644ed2a49661b (patch)
tree1a807d489e596cb22a0d61477634ee58eefd0d77 /Report/Chapter4.tex
parentf4e998b40b593ba2c618b5335d4726296c3a3fb0 (diff)
download2id45-ef54dae17fe6833dabdc7d22cb5644ed2a49661b.zip
2id45-ef54dae17fe6833dabdc7d22cb5644ed2a49661b.tar.gz
2id45-ef54dae17fe6833dabdc7d22cb5644ed2a49661b.tar.bz2
Diffstat (limited to 'Report/Chapter4.tex')
-rw-r--r--Report/Chapter4.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Report/Chapter4.tex b/Report/Chapter4.tex
index 8d49a7c..42bec06 100644
--- a/Report/Chapter4.tex
+++ b/Report/Chapter4.tex
@@ -1,6 +1,6 @@
\section{XQuery and XPath}
-The XQuery and XPath queries used in the Pottepei application gather and update the information stored in the XML database. This chapter deals with those queries and explains how they are build up and what the reproduce. \\
+The XQuery and XPath queries used in the Pottepei application gather and update the information stored in the XML database. This chapter deals with those queries and explains how they are build up and what the reproduce.
\subsection{Retrieve data}
@@ -8,7 +8,7 @@ To retrieve data about any liquor or recipe the application needs to perform a q
The query for this is therefor very simple:
-$$ //\text{item} $$
+$$ \text{//item or: /descendant-or-self/item} $$
This query gets all the "items" from the database. We know that there is only one "items" node so the application walks trough all child-nodes of the result. The code snippet below show a brief example on how to retrieve the title of all items.