Streaming XML patch
First Claim
1. A method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
- A) sending said instructions over transmission media;
B) receiving said instructions over transmission media;
C) storing said instructions onto a machine-readable storage medium; and
D) executing the instructions;
wherein said instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of;
generating a plurality of node events based on an input document;
generating one or more operation events based on an edit script, wherein the edit script specifies a set of operations to perform on the input document;
applying the edit script to the input document by performing one or more operations, corresponding to one or more operation events, on one or more node events of the plurality of node events; and
generating an output document that reflects the one or more operations.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for differencing XML documents is provided. An edit graph is generated for computing the cost of possible edits that may be applied to a first XML document in order to generate a second XML document. A hash value is assigned to nodes included in the axes of the edit graph, where one axis includes nodes in the first XML document and the other axis includes nodes in the second XML document. The hash value may be generated based on a particular node'"'"'s name and attributes, and the hash value of the name and attributes of each child node of the particular node. A technique for patching an XML document is also provided. Events are generated for each node in the input document and for at least one operation specified in the edit script. The edit script is applied to the input document by performing one or more operations specified in the operation events on one or more node events.
32 Citations
12 Claims
-
1. A method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
-
A) sending said instructions over transmission media; B) receiving said instructions over transmission media; C) storing said instructions onto a machine-readable storage medium; and D) executing the instructions; wherein said instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of; generating a plurality of node events based on an input document; generating one or more operation events based on an edit script, wherein the edit script specifies a set of operations to perform on the input document; applying the edit script to the input document by performing one or more operations, corresponding to one or more operation events, on one or more node events of the plurality of node events; and generating an output document that reflects the one or more operations. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A machine-readable medium carrying one or more sequences of instructions, which when executed by one or more processors, causes the one or more processors to perform a method comprising the steps of:
-
generating a plurality of node events based on an input document; generating one or more operation events based on an edit script, wherein the edit script specifies a set of operations to perform on the input document; applying the edit script to the input document by performing one or more operations, corresponding to one or more operation events, on one or more node events of the plurality of node events; and generating an output document that reflects the one or more operations. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification