Support for updating XML documents has recently attracted interest. When an XML document is to conform to a given schema, the problem of structural consistency arises during updating, i.e., how to incrementally guarantee that the modified XML document continues to conform to the given XML Schema. To achieve this following the traditional database approach, the XML Schema would first have to be analyzed to construct a structured repository and the XML documents would have to be loaded into this repository before any update could be checked for possible schema constraint violation. Due to the very nature of XML being lightweight and freely shared over the Web, we instead propose a novel approach towards incremental constraint checking that follows the loosely-coupled web paradigm. Namely, we propose to rewrite an XML update query into a safe XML update query by extending the original query with appropriate constraint checking subqueries. This enhanced XML update query can then safely be executed using any existing XQuery engine that supports updates. In order to verify the feasibility of our approach, we have implemented a prototype, SAXE, that implements the above techniques by extending the Kweelt XML query engine by University of Pennsylvania with both XML update support as well as incremental constraint support.
[1]
Terry A. Halpin,et al.
Object Role Modelling and XML-Schema
,
2000,
ER.
[2]
Elke A. Rundensteiner,et al.
XEM: managing the evolution of XML documents
,
2001,
Proceedings Eleventh International Workshop on Research Issues in Data Engineering. Document Management for Data Intensive Business and Scientific Applications. RIDE 2001.
[3]
Gerti Kappel,et al.
X-Ray - Towards Integrating XML and Relational Database Systems
,
2000,
ER.
[4]
Alon Y. Halevy,et al.
Updating XML
,
2001,
SIGMOD '01.
[5]
Alfred V. Aho,et al.
Compilers: Principles, Techniques, and Tools
,
1986,
Addison-Wesley series in computer science / World student series edition.