Extracting Key Value and Checking Structural Constraints for Validating XML Key Constraints

We propose an approach that can effectively validate key constrains over XML document by extracting key value and checking structural constraints. First we propose an XPath-based algorithm that can extract key values from the XML document and generate the corresponding key value document. Then we present how a key value document and its DTD can be designed to check whether predefined key constraints are satisfied. Last we draw an interesting conclusion that as long as XML keys can be expressed in XPath, the validation problem can be done by the XPath and the structural constraints checking.

[1]  Wenfei Fan,et al.  Reasoning about Keys for XML , 2001, DBPL.

[2]  Wenfei Fan,et al.  Propagating XML constraints to relations , 2003, Proceedings 19th International Conference on Data Engineering (Cat. No.03CH37405).

[3]  Wenfei Fan,et al.  Keys for XML , 2001, WWW '01.

[4]  Susan B. Davidson,et al.  XKvalidator: a constraint validator for XML , 2002, CIKM '02.

[5]  Rajeev Rastogi,et al.  Capturing both types and constraints in data integration , 2003, SIGMOD '03.

[6]  Wenfei Fan,et al.  On verifying consistency of XML specifications , 2002, PODS.

[7]  Wenfei Fan,et al.  Constraints for semistructured data and XML , 2001, SGMD.

[8]  Wenfei Fan,et al.  Integrity constraints for XML , 2003, J. Comput. Syst. Sci..