summaryrefslogtreecommitdiffstats
path: root/Report/Chapter4.tex
diff options
context:
space:
mode:
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.