×

System and method for comparing hashed XML files

  • US 7,096,421 B2
  • Filed: 03/18/2002
  • Issued: 08/22/2006
  • Est. Priority Date: 03/18/2002
  • Status: Active Grant
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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×