Exemples :
/menu/entree/nom
/menu/dessert[parfums/parfum="Vanille"]/nom
/menu/plat_princ/*
//*[parfum]
//parfum[position()=2]
//entree
Requête XPATH :
/menu/entree/nomAnalyse de la requête :
- Pas de prédicat
- Nombre de tables 'Parenté' utilisées : 3
Requête SQL correspondante :
SELECT P3.id
FROM Parente P1, Parente P2, Parente P3
WHERE P3.Label = "nom" and P2.Label = "entree" and P2.id = P3.Parent and P1.Label = "menu" and P1.id = P2.Parent and P1.Parent = 0;