VXMLR: A Visual XML-Relational Database System

Aoying Zhou, Hongjun Lu, Shihui Zheng, Yuqi Liang, Long Zhang, Wenyun Ji, Zengping TianVLDB 2001

Abstract

VXMLR is a middleware system designed to bridge the gap between hierarchical XML data and robust relational database management systems (RDBMS). By providing a visual interface for DTD-based querying and an optimized translation layer that converts path expressions into SQL, VXMLR enables efficient management and retrieval of XML documents without requiring users to master complex underlying relational mappings.

Introduction

In the early 2000s, the rapid adoption of XML as a standard for data exchange created a significant challenge: how to store and query semi-structured data using mature relational technologies. While RDBMS offered reliability and performance for flat data, "shredding" hierarchical XML into tables often led to two primary issues: extreme usability hurdles for non-experts and a "join explosion" that severely degraded performance. VXMLR (Visual XML-Relational) was developed to address these hurdles by acting as an intelligent middleware layer.

System Architecture

The VXMLR architecture is composed of several modules that handle the lifecycle of XML data from ingestion to query reconstruction.

VXMLR System Architecture

As shown in the architecture diagram, the process begins with Storage Mapping, where XML documents are parsed into DOM trees and their Data Type Definitions (DTDs) are extracted to map elements into relational tables. A critical component is the Path Directory, which materializes paths from the root to specific elements. This directory allows the system to "short-circuit" what would otherwise be a series of expensive joins, replacing them with simple lookups.

Visual Querying and SQL Translation

One of the most innovative aspects of VXMLR is its Visual Query Interface. Instead of writing manual SQL against a complex schema, users interact with a tree-based representation of the DTD.

Visual Query Interface Screenshot

Users can build Regular Path Expressions (RPE)—which include wildcards like # for arbitrary paths—by simply clicking on elements and defining conditions. The system's RPE-SQL Rewriter then translates these visual selections into optimized SQL. To handle wildcards, the rewriter uses DTD metadata and internal statistics to expand them into only the valid, existing paths in the database, combining the results via UNION statements. This ensures that the generated SQL is both accurate and performant.

Key Insights and Performance

The VXMLR system introduces several key optimizations:

  • Join Reduction: By utilizing the Path Directory, a query that would normally require four joins for a path of length five can be executed with significantly fewer operations.
  • Cycle Handling: The system tracks cycles within the data graph to prevent infinite loops during the translation of recursive path expressions.
  • Result Reconstruction: After the RDBMS executes the SQL, the XSL Processor uses Extensible Stylesheet Language to transform the flat relational results back into the original XML hierarchy requested by the user.

Conclusion and Future Work

VXMLR demonstrates the feasibility of using a visual middleware to manage XML in a relational environment. While the prototype showed dramatic performance gains and improved usability, future research could explore tighter integration of these optimizations directly into database kernels. Additionally, further study is needed to evaluate the system's performance on "well-formed" XML documents that lack a formal DTD.

Summary updated

BibTeX
@inproceedings{zhou2001vxmlr,
  author = {Aoying Zhou and Hongjun Lu and Shihui Zheng and Yuqi Liang and Long Zhang and Wenyun Ji and Zengping Tian},
  title = {{VXMLR: A Visual XML-Relational Database System}},
  booktitle = {VLDB},
  year = {2001},
}
Figure