domnode hash

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gdczinan
    New Member
    • Apr 2009
    • 4

    #1

    domnode hash

    given a domnode, how to calcuate the hash of this domnode by using the xerces c++
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    What is your hash function? OR do you want to know what would be a good hash function in this case?
    I would consider using the generate-id() function, and then hashing that string.

    Comment

    • gdczinan
      New Member
      • Apr 2009
      • 4

      #3
      I use the SHA1 to hash the domnode. is there any reference on how to generate the hash for the domnode?

      I check the DSIGSignature source code on how to generate the digest value. the code is a bit messy and In order to use it, i have to change the content of the domnode ( insert some kind of ID ), which is not desired..can any one help ?

      Comment

      • jkmyoung
        Recognized Expert Top Contributor
        • Mar 2006
        • 2057

        #4
        When you're parsing the nodes, are you keeping track of the positions of each node? eg like:
        /rootnode/layer1node(5)/layer2node(4)/layer3node(1)

        Comment

        Working...