System and method for comparing hashed XML files
First Claim
Patent Images
1. A computer implemented method of comparing a first XML document and a second XML document comprising:
- hashing a first XML document, wherein the first XML document includes a plurality of first tags, and hashing the first XML document includes hashing each one of the plurality of first tags including;
selecting one of the plurality of first tags from the first XML document, wherein the selected first tag includes a corresponding description value and a corresponding results value; and
hashing the corresponding description value of the selected first tag to identify a corresponding unique location in a hash table;
storing at least one of the results value and the description value in the identified corresponding unique location in the hash table for each one of the plurality of first tags;
hashing a second XML document, wherein the second XML document includes a plurality of second tags, wherein the plurality of first tags has a corresponding first order and the plurality of second tags has a corresponding second order, the first order is not equal to the second order, including hashing the corresponding second description value from a corresponding description tag included in the selected second tag wherein the hashed second description value identifies a corresponding unique second location in the hash table wherein hashing the corresponding second description value includes;
determining if the corresponding unique second identified location in the hash table includes a stored value, wherein if the corresponding unique second identified location in the hash table includes a stored value, then;
comparing the stored value to the corresponding second results value of a corresponding results tag included in the selected second tag;
outputting the selected second tag as a changed tag, if the stored value is not equal to the corresponding second results value; and
deleting the stored value from the corresponding unique second identified location in the hash table; and
wherein if the corresponding unique second identified location in the hash table does not include a stored value, then outputting the selected second tag as a new tag;
comparing the first hashed XML document and the second hashed XML document; and
outputting a difference report.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method of comparing a first XML document and a second XML document includes hashing the first and the second XML documents. The first hashed XML document is compared to the second hashed XML document and a difference report is output.
50 Citations
18 Claims
-
1. A computer implemented method of comparing a first XML document and a second XML document comprising:
-
hashing a first XML document, wherein the first XML document includes a plurality of first tags, and hashing the first XML document includes hashing each one of the plurality of first tags including; selecting one of the plurality of first tags from the first XML document, wherein the selected first tag includes a corresponding description value and a corresponding results value; and hashing the corresponding description value of the selected first tag to identify a corresponding unique location in a hash table; storing at least one of the results value and the description value in the identified corresponding unique location in the hash table for each one of the plurality of first tags; hashing a second XML document, wherein the second XML document includes a plurality of second tags, wherein the plurality of first tags has a corresponding first order and the plurality of second tags has a corresponding second order, the first order is not equal to the second order, including hashing the corresponding second description value from a corresponding description tag included in the selected second tag wherein the hashed second description value identifies a corresponding unique second location in the hash table wherein hashing the corresponding second description value includes; determining if the corresponding unique second identified location in the hash table includes a stored value, wherein if the corresponding unique second identified location in the hash table includes a stored value, then; comparing the stored value to the corresponding second results value of a corresponding results tag included in the selected second tag; outputting the selected second tag as a changed tag, if the stored value is not equal to the corresponding second results value; and deleting the stored value from the corresponding unique second identified location in the hash table; and wherein if the corresponding unique second identified location in the hash table does not include a stored value, then outputting the selected second tag as a new tag; comparing the first hashed XML document and the second hashed XML document; and outputting a difference report. - View Dependent Claims (2)
-
-
3. A computer implemented method of comparing a first XML document and a second XML document comprising:
-
hashing a first XML document using a first hashing function, wherein the first XML document includes a plurality of first tags, and hashing the first XML document includes hashing each one of the plurality of first tags including; selecting one of the plurality of first tags from the first XML document, wherein the selected first tag includes a corresponding first description value and a corresponding first results value; and hashing the corresponding first description value of the selected first tag to identify a corresponding unique first location in a hash table; storing the hashed first XML document in the hash table including storing the first results value in the identified corresponding unique first location in the hash table for each one of the plurality of first tags in the first XML document; selecting one of the plurality of second tags from a second XML document, wherein the plurality of first tags has a corresponding first order and the plurality of second tags has a corresponding second order, the first order is not equal to the second order, wherein the selected second tag includes a corresponding second description value and a corresponding second results value; and hashing the selected second tag from the second XML document, including hashing the corresponding second description value from a corresponding description tag included in the selected second tag wherein the hashed second description value identifies a corresponding unique second location in the hash table wherein hashing the corresponding second description value includes; determining if the corresponding unique second identified location in the hash table includes a stored value, wherein if the corresponding unique second identified location in the hash table includes a stored value, then; comparing the stored value to the corresponding second results value of a corresponding results tag included in the selected second tag; outputting the selected second tag as a changed tag, if the stored value is not equal to the corresponding second results value; and deleting the stored value from the corresponding unique second identified location in the hash table; and wherein if the corresponding unique second identified location in the hash table does not include a stored value, then outputting the selected second tag as a new tag. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. An XML comparator comprising:
-
a processor; and a memory system coupled to the processor, wherein the memory system includes instructions executable by the processor to; hash a first XML document using a first hashing function, wherein the first XML document includes a plurality of first tags, and hashing the first XML document includes hashing each one of the plurality of first tags including; selecting one of the plurality of first tags from the first XML document, wherein the selected first tag includes a corresponding first description value and a corresponding first results value; and hashing the corresponding first description value of the selected tag to identify a corresponding unique first location in a hash table; store the hashed first XML document in a hash table including storing the first results value in the identified corresponding unique first location in the hash table for each one of the plurality of tags in the first XML document; select one of a second plurality of second tags from a second XML document, wherein the plurality of first tags has a corresponding first order and the plurality of second tags has a corresponding second order, the first order is not equal to the second order, wherein the selected second tag includes a corresponding second description value and a corresponding second results value; and hash the selected second tag from the second XML document, including hashing the corresponding second description value from a corresponding description tag included in the selected second tag wherein the hashed second description value identifies a corresponding unique second location in the hash table wherein hashing the second description value includes; determining if the corresponding unique second identified location in the hash table includes a stored value, wherein if the corresponding unique second identified location in the hash table includes a stored value, then; comparing the stored value to the corresponding second results value of a corresponding results tag included in the selected second tag; outputting the selected second tag as a changed tag, if the stored value is not equal to the corresponding second results value; and deleting the stored value from the corresponding unique second identified location in the hash table; and wherein if the corresponding unique second identified location in the hash table does not include a stored value, then outputting the selected second tag as a new tag. - View Dependent Claims (15, 16, 17, 18)
-
Specification