A Decision Procedure for XPath Containment - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles ACM Transactions on Information Systems Year : 2005

A Decision Procedure for XPath Containment

Pierre Genevès
Nabil Layaïda


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.
Embargoed file
Embargoed file
Visibility date is undetermined

Dates and versions

inria-00000391 , version 1 (04-10-2005)


  • HAL Id : inria-00000391 , version 1


Pierre Genevès, Nabil Layaïda. A Decision Procedure for XPath Containment. ACM Transactions on Information Systems, 2005. ⟨inria-00000391⟩
43 View
0 Download


Gmail Facebook X LinkedIn More