Client apparatus for updating data
First Claim
1. A client apparatus programmed for processing an electronic document for display to a user, said electronic document comprising a number of nodes logically arranged in a tree structure with a number of levels in which each node in a lower level has a relationship to a node in a higher level, the apparatus comprising:
- a receiver for receiving first data via a network, said first data comprising a first version of said electronic document, and for subsequently receiving a refresh of the first data, said refresh of the first data comprising second data comprising a second version of said electronic document;
a comparator for determining whether there is a difference between the first data and the second data by comparing corresponding nodes from said first and second versions of said electronic document; and
an updater, responsive to the comparator determining that there is a difference, for updating the first data with the second data,in which, upon finding a node that differs between said first and second versions of said electronic document, the comparator does not compare nodes at any lower level that are related to the node that differs between said first and second versions of said electronic document.
1 Assignment
0 Petitions
Accused Products
Abstract
A client apparatus receives first data from a server and later receives second data from the same server in response to a refresh invocation. The client apparatus parses the received data to generate logical structures representing the data and then compares the logical structures using a tree walking algorithm. Where a difference is found between the first data and second data, the first data is updated using the second data and rendered at the client apparatus.
17 Citations
23 Claims
-
1. A client apparatus programmed for processing an electronic document for display to a user, said electronic document comprising a number of nodes logically arranged in a tree structure with a number of levels in which each node in a lower level has a relationship to a node in a higher level, the apparatus comprising:
-
a receiver for receiving first data via a network, said first data comprising a first version of said electronic document, and for subsequently receiving a refresh of the first data, said refresh of the first data comprising second data comprising a second version of said electronic document; a comparator for determining whether there is a difference between the first data and the second data by comparing corresponding nodes from said first and second versions of said electronic document; and an updater, responsive to the comparator determining that there is a difference, for updating the first data with the second data, in which, upon finding a node that differs between said first and second versions of said electronic document, the comparator does not compare nodes at any lower level that are related to the node that differs between said first and second versions of said electronic document. - View Dependent Claims (2, 3, 4, 5, 6, 21, 22, 23)
-
-
7. A method for updating first data comprising a first version of an electronic document defined by a series of nodes logically arranged in a tree structure with a number of levels in which each node in a lower level has a relationship to a node in a higher level and for invoking a refresh of the first data, wherein, in response to the refresh invocation, second data is received and comprises a second version of said electronic document, the method comprising:
-
comparing the first data and the second data by comparing corresponding nodes from said first and second versions of said electronic document; determining whether there is a difference between the first data and the second data; and updating, in response to determining that there is a difference, nodes from the first data with corresponding nodes from the second data, in which updating nodes from the first data with corresponding nodes from the second data comprises replacing a node that differs and any related nodes at any lower level in said first version with the corresponding node from said second data version and any related nodes at any lower level of the second version, in which, upon finding a node that differs between said first and second versions of said electronic document, the comparator does not compare nodes at any lower level that are related to the node that differs between said first and second versions of said electronic document. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A computer program product for updating data in a client computer system for receiving first data comprising a first version of an electronic document defined by a series of nodes logically arranged in a tree structure with a number of levels in which each node in a lower level has a relationship to a node in a higher level and for invoking a refresh of the first data, wherein, in response to the refresh invocation, the client computer system is operable to receive second data comprising a second version of said electronic document, said computer program product comprising a physical computer usable medium having computer usable program code embodied therewith, said computer usable program code comprising:
-
computer usable program code that compares the first data and the second data by comparing corresponding nodes from said first and second versions of said electronic document; computer usable program code that determines whether there is a difference between the first data and the second data; and computer usable program code that, in response to a determination that there is a difference, updates nodes from the first data with corresponding nodes from the second data, in which the computer usable program code that determines whether there is a difference between the first data and the second data comprises computer usable program code that utilizes a tree walking algorithm based on said tree structure of said nodes of the electronic document to compare corresponding nodes from said first and second versions of said electronic document, in which, upon finding a node that differs between said first and second versions of said electronic document, the comparator does not compare nodes at any lower level that are related to the node that differs between said first and second versions of said electronic document. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification