Rapport
 

Requête XPATH :


Exemples :


/menu/entree/nom
/menu/dessert[parfums/parfum="Vanille"]/nom
/menu/plat_princ/*
//*[parfum]
//parfum[position()=2]
//entree

Requête XPATH :

/menu/entree/nom

Analyse de la requête :

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;