Skip to main content
QUICK REVIEW

[Paper Review] XRecursive: An Efficient Method to Store and Query XML Documents

Mohammed Adam Ibrahim Fakharaldien, Jasni Mohamad Zain|arXiv (Cornell University)|Mar 29, 2012
Advanced Database Systems and QueriesComputer Science5 citations
TL;DR

XRecursive proposes a novel relational schema to efficiently store and query XML documents by recursively mapping XML hierarchy into normalized tables using parent-child relationships and path encoding. Experimental results on a real database show improved query performance and scalability compared to traditional XML storage methods, particularly for complex nested queries.

ABSTRACT

Storing XML documents in a relational database is a promising solution because relational databases are mature and scale very well and they have the advantages that in a relational database XML data and structured data can coexist making it possible to build application that involve both kinds of data with little extra effort . In this paper, we propose an algorithm schema named XRecursive that translates XML documents to relational database according to the proposed storing structure. The steps and algorithm are given in details to describe how to use the storing structure to storage and query XML documents in relational database. Then we report our experimental results on a real database to show the performance of our method in some features.

Motivation & Objective

  • To address the challenge of efficiently storing and querying hierarchical XML data in relational databases.
  • To enable coexistence of XML and structured data within a single relational database system.
  • To reduce query execution time and improve scalability for complex XML queries.
  • To provide a systematic, algorithmic approach for translating XML documents into normalized relational tables.

Proposed method

  • XRecursive maps XML documents into a normalized relational schema using recursive foreign key relationships to represent parent-child hierarchies.
  • Each XML element is stored in a table with attributes for element name, value, and parent identifier, enabling hierarchical traversal.
  • Path encoding is used to represent the full path of each element, facilitating efficient path-based queries.
  • The schema supports both structural and value-based queries through SQL execution over the normalized tables.
  • The method ensures referential integrity and supports standard SQL operations without requiring XML-specific database extensions.
  • The algorithm includes a detailed translation process from XML to relational schema, including handling of attributes, text nodes, and nested structures.

Experimental results

Research questions

  • RQ1How can XML documents be efficiently stored in a relational database while preserving their hierarchical structure?
  • RQ2What relational schema design minimizes query execution time for complex XML queries?
  • RQ3Can a normalized relational schema support both XML and structured data with minimal performance overhead?
  • RQ4How does the proposed method scale with increasing XML document size and nesting depth?

Key findings

  • XRecursive achieved faster query execution times compared to conventional XML storage methods, especially for deep and complex XML structures.
  • The method demonstrated improved scalability when handling large XML documents with high nesting levels.
  • Path encoding in the schema enabled efficient XPath-like queries without requiring full table scans.
  • The normalized structure supported efficient joins and indexing, reducing query response times.
  • The approach allowed seamless integration of XML and relational data within a single database instance.
  • Experimental results on real-world data showed consistent performance gains across various query types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.