A Decision Procedure for XPath Containment

Pierre Genevès 1 Nabil Layaïda 1
1 WAM - Web, adaptation and multimedia
Inria Grenoble - Rhône-Alpes
Abstract : XPath is the standard language for addressing parts of an XML document. We present a sound and complete decision procedure for containment of XPath queries. The considered XPath fragment covers most of the language features used in practice. Specifically, we show how XPath queries can be translated into equivalent formulas in monadic second-order logic. Using this translation, we construct an optimized logical formulation of the containment problem, which is decided using tree automata. When the containment relation does not hold between two XPath expressions, a counter-example XML tree is generated. We provide a complexity analysis together with practical experiments that illustrate the efficiency of the decision procedure for realistic scenarios.
Type de document :
[Research Report] RR-5867, INRIA. 2006, pp.41
Liste complète des métadonnées

Contributeur : Rapport de Recherche Inria <>
Soumis le : vendredi 19 mai 2006 - 19:17:03
Dernière modification le : samedi 17 septembre 2016 - 01:35:53
Document(s) archivé(s) le : mardi 22 février 2011 - 11:37:01



  • HAL Id : inria-00070159, version 1



Pierre Genevès, Nabil Layaïda. A Decision Procedure for XPath Containment. [Research Report] RR-5867, INRIA. 2006, pp.41. <inria-00070159>



Consultations de
la notice


Téléchargements du document