Merging XML documents automatically using attributes based comparison
First Claim
1. A method for automatically merging data contained in a first XML document and data contained in a second XML document, the method comprising:
- performing a set of comparisons, each comparison of the set of comparisons comparing an element of a set of elements of the first XML document with an element of a set of elements of the second XML document;
wherein the comparison is based on at least one merge attribute, the at least one merge attribute being associated with the elements of the set of elements of the first XML document and the second XML document;
wherein each comparison involves comparing the value of the at least one merge attribute of the first XML document with that of the second XML document;
determining from the set of comparisons, one or more conflicts in the first XML document and the second XML document;
generating a merged XML document by resolving the one or more conflicts and identifying data from both the first XML document and the second XML document to be contained in the merged XML document.
1 Assignment
0 Petitions
Accused Products
Abstract
An aspect of the present invention provides a technique to automatically merge information contained in two or more XML documents in to a single merged XML document. The merging technique is based on a comparison logic that involves comparing XML elements of one of the XML document with elements of the other XML document and this element comparison is based on at least one XML attribute associated with the elements of the XML documents and termed as a merge attribute in the embodiments of the invention. An aspect of the present invention involves parsing the XML documents and providing a list of attributes asscociated with the elements of the XML documents and allowing a user to select one or more attributes as merge attributes. In yet another embodiment the XML:ID-type is selected as the default merge attribute.
57 Citations
22 Claims
-
1. A method for automatically merging data contained in a first XML document and data contained in a second XML document, the method comprising:
-
performing a set of comparisons, each comparison of the set of comparisons comparing an element of a set of elements of the first XML document with an element of a set of elements of the second XML document; wherein the comparison is based on at least one merge attribute, the at least one merge attribute being associated with the elements of the set of elements of the first XML document and the second XML document; wherein each comparison involves comparing the value of the at least one merge attribute of the first XML document with that of the second XML document; determining from the set of comparisons, one or more conflicts in the first XML document and the second XML document; generating a merged XML document by resolving the one or more conflicts and identifying data from both the first XML document and the second XML document to be contained in the merged XML document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21)
-
-
18. A digital processing system comprising:
-
at least a memory and a processor and capable of executing software instructions corresponding to the operations of; receiving from a client system a request to merge a first XML document with a second XML document; performing a set of comparisons, each comparison of the set of comparisons comparing an element of a set of elements of the first XML document with an element of a set of elements of the second XML document; wherein the comparison is based on at least one merge attribute, the at least one merge attribute being associated with the elements of the set of elements of the first XML document and the second XML document; wherein each comparison involves comparing a value of the at least one merge attribute of the first XML document with that of the second XML document; identifying from the set of comparisons, one or more conflicting elements in the first XML document and the second XML document; generating a merged XML document by resolving the one or more conflicting elements, and identifying data from both the first XML document and the second XML document to be contained in the merged XML document ; and sending to the client system the merged XML document.
-
-
22. A digital processing system for comparing a first XML document with a second XML document, said digital processing system comprising:
-
at least a memory and a processor and capable of executing software instructions performing the operations of; receiving from a client system across a network, a request to compare the first XML document with the second XML document; parsing the first XML document and the second XML document; communicating to the client system, a list of attributes in the first XML document and the second XML document; receiving from the client system at least one merge attribute selected from the list of attributes; performing a set of comparisons, each comparison of the set of comparisons comparing an element of a set of elements of the first XML document with an element of a set of elements of the second XML document; wherein the comparison is based on at least one merge attribute, the at least one merge attribute being associated with the elements of the set of elements of the first XML document and the second XML document; wherein each comparison involves comparing the value of the at least one merge attribute of the first XML document with that of the second XML document; and generating one or more events corresponding to result of each comparison of the set of comparisons.
-
Specification