Skip to main content
Log in

Efficient filtering of XML documents with XPath expressions

  • Published:
The VLDB Journal Aims and scope Submit manuscript

Abstract.

The publish/subscribe paradigm is a popular model for allowing publishers (i.e., data generators) to selectively disseminate data to a large number of widely dispersed subscribers (i.e., data consumers) who have registered their interest in specific information items. Early publish/subscribe systems have typically relied on simple subscription mechanisms, such as keyword or ”bag of words” matching, or simple comparison predicates on attribute values. The emergence of XML as a standard for information exchange on the Internet has led to an increased interest in using more expressive subscription mechanisms (e.g., based on XPath expressions) that exploit both the structure and the content of published XML documents. Given the increased complexity of these new data-filtering mechanisms, the problem of effectively identifying the subscription profiles that match an incoming XML document poses a difficult and important research challenge. In this paper, we propose a novel index structure, termed XTrie, that supports the efficient filtering of XML documents based on XPath expressions. Our XTrie index structure offers several novel features that, we believe, make it especially attractive for large-scale publish/subscribe systems. First, XTrie is designed to support effective filtering based on complex XPath expressions (as opposed to simple, single-path specifications). Second, our XTrie structure and algorithms are designed to support both ordered and unordered matching of XML data. Third, by indexing on sequences of elements organized in a trie structure and using a sophisticated matching algorithm, XTrie is able to both reduce the number of unnecessary index probes as well as avoid redundant matchings, thereby providing extremely efficient filtering. Our experimental results over a wide range of XML document and XPath expression workloads demonstrate that our XTrie index structure outperforms earlier approaches by wide margins.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received: December 15, 2001 / Accepted: June 1, 2002 Published online: December 13, 2002

RID="a"

ID="a" Present address: Institut EURECOM, Sophia Antipolis, France;e-mail: Pascal.Felber@eurecom.fr

Rights and permissions

Reprints and permissions

About this article

Cite this article

Chan, CY., Felber, P., Garofalakis, M. et al. Efficient filtering of XML documents with XPath expressions. VLDB 11, 354–379 (2002). https://doi.org/10.1007/s00778-002-0077-6

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00778-002-0077-6

Navigation