Affiliation:
1. IBM Almaden Research Center, San Jose, CA
2. University of California at San Diego, La Jolla, CA
Abstract
We investigate the incremental validation of XML documents with respect to DTDs, specialized DTDs, and XML Schemas, under updates consisting of element tag renamings, insertions, and deletions. DTDs are modeled as extended context-free grammars. "Specialized DTDs" allow the decoupling of element types from element tags. XML Schemas are abstracted as specialized DTDs with limitations on the type assignment. For DTDs and XML Schemas, we exhibit an
O
(
m
log
n
) incremental validation algorithm using an auxiliary structure of size
O
(
n
), where
n
is the size of the document and
m
the number of updates. The algorithm does not handle the incremental validation of XML Schema wrt renaming of internal nodes, which is handled by the specialized DTDs incremental validation algorithm. For specialized DTDs, we provide an
O
(
m
log
2
n
) incremental algorithm, again using an auxiliary structure of size
O
(
n
). This is a significant improvement over brute-force re-validation from scratch.We exhibit a restricted class of DTDs called
local
that arise commonly in practice and for which incremental validation can be done in practically constant time by maintaining only a list of counters. We present implementations of both general incremental validation and local validation on an XML database built on top of a relational database.Our experimentation includes a study of the applicability of local validation in practice, results on the calibration of parameters of the auxiliary data structure, and results on the performance comparison between the general incremental validation technique, the local validation technique, and brute-force validation from scratch.
Publisher
Association for Computing Machinery (ACM)
Reference38 articles.
1. Balmin A. and Papakonstantinou Y. 2004. Storing and querying XML data using denormalized relational databases. VLDB J. (Online First section). Available online at http://springerlink.metapress.com/openurl.asp?genre=article&id=doi:10.1007/s00778-003-0113-1. Also available online at http://www.db.ucsd.edu/people/andrey. 10.1007/s00778-003-0113-1 Balmin A. and Papakonstantinou Y. 2004. Storing and querying XML data using denormalized relational databases. VLDB J. (Online First section). Available online at http://springerlink.metapress.com/openurl.asp?genre=article&id=doi:10.1007/s00778-003-0113-1. Also available online at http://www.db.ucsd.edu/people/andrey. 10.1007/s00778-003-0113-1
2. Bruggemann-Klein A. Murata M. and Wood D. 2001. Regular tree and regular hedge languages over non-ranked alphabets. Tech. rep. HKUST-TCSC-2001-05. Hong Kong University of Science and Technology Computer Science Center Hong Kong. Available online at http://www.cs.ust.hk/tcsc/RR/2001-05.ps.gz. Bruggemann-Klein A. Murata M. and Wood D. 2001. Regular tree and regular hedge languages over non-ranked alphabets. Tech. rep. HKUST-TCSC-2001-05. Hong Kong University of Science and Technology Computer Science Center Hong Kong. Available online at http://www.cs.ust.hk/tcsc/RR/2001-05.ps.gz.
3. One-Unambiguous Regular Languages
Cited by
51 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献