Incremental validation of key and keyref constraints
Abstract
The present invention relates to a method, and system for implementing the method, for performing incremental validation of an XML document with respect to XML Schema key and keyref constraints, and handling the semantics dictated by the XML Schema specification. Several operations are defined that change the content of a document, i.e., add or remove nodes, or change the value of existing nodes. The present invention verifies whether performing such an operation would violate key or keyref constraints, and allows changing the document only if the operation maintains the validity of the document with respect to the constraints. The verification traverses only the parts of the document that may be affected by the change operation, and not the whole document. The invention maintains, in an efficient manner, data structures that hold information relevant to the validation of key and keyref constraints.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for updating an XML document in a computer and validating the update in an incremental fashion with respect to XML schema key and keyref constraints, said method comprising: (i) defining an XML schema comprising key and keyref constraints, wherein each keyref constraint refers to a key constraint in a scoping element, by specifying the key constraint's name; (ii) validating an XML document conforming to the XML schema and comprising a key element and a keyref element in accordance with the key and keyref constraints; (iii) building a data structure for capturing the state of the X
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (3)
- Kane et al., Consistently Updating XML Documents Using Incremental Constraints Check Queries, ACM 2002., pp. 1-8.
- Priscilla Walmsley, "Chapter 17: Identity constraints", Defnitive XML Schema, 1st edition (Dec. 7, 2001) Prentice Hall PTR; ISBN: 0130655678.
- XML Schema keyref Element, www.w3schools.com (Copyright 2009-2010).