Claims
- 1. In an XML handling system, wherein XML documents are stored in structured forms, a method of updating an XML document without requiring global changes to the XML document, the method comprising:
organizing a representation of the XML document as a collection of subtrees, wherein a subtree represents a connected set of one or more nodes and wherein a node represents an XML element, content, attribute or value; identifying an affected set comprising subtrees that would be affected by an update instruction; creating a replacement set of one or more subtrees that would substitute for the subtrees in the affected set; adding the replacement set to the representation; and marking each of the subtrees in the affected set as being no longer part of the representation.
- 2. The method of claim 1, wherein marking a subtree as being no longer part of the representation comprises setting a delete flag for the subtree.
- 3. The method of claim 1, further comprising assigning an ordinal value to each node such that if and only if a first node comes before a second node in the XML document, the ordinal value assigned to the first node is less than the ordinal value assigned to the second node.
- 4. The method of claim 3, wherein the ordinal values are assigned as multiples of a number greater than one such that unassigned ordinal values exist between each initially assigned ordinal value, thereby providing for ordinal values that could be assigned to subsequently inserted nodes.
- 5. The method of claim 1, wherein the update instruction is one of Save, Load, Document-insert, Document-delete, Node-replace, Node-delete, Node-insert-before, Node-insert-after, Node-insert-child and Commit.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Application No. 60/389,052, filed Jun. 13, 2002, entitled “XML DB TRANSACTIONAL UPDATE SYSTEM,” which disclosure is incorporated herein by reference for all purposes. The present disclosure is related to the following commonly assigned co pending U.S. patent applications:
[0002] No. ______ (Attorney Docket No. 021512 000110US, filed on the same date as the present application, entitled “A SUBTREE STRUCTURED XML DATABASE” (hereinafter “Lindblad I-A”);
[0003] No. ______ (Attorney Docket No. 021512 000210US, filed on the same date as the present application, entitled “PARENT-CHILD QUERY INDEXING FOR XML DATABASES” (hereinafter “Lindblad II-A”); and
[0004] No. ______ (Attorney Docket No. 021512 000410US, filed on the same date as the present application, entitled “XML DATABASE MIXED STRUCTURAL-TEXTUAL CLASSIFICATION SYSTEM” (hereinafter “Lindblad IV-A”); The respective disclosures of these applications are incorporated herein by reference for all purposes.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60389052 |
Jun 2002 |
US |