1. Shlomi Fish
  2. perl-XML-LibXML
  3. Pull requests

Pull requests

#20 Merged
Repository
Deleted repository
Branch
default (14e67906e74c)
Repository
perl-XML-LibXML
Branch
default

unique_key method for nodes

Author
  1. garfieldnate
Reviewers
Description

I added a method called unique_key which returns a key guaranteed to be unique and unchanging for a given node. I find this useful in creating hash structures with the unique_key return value as the key.

The actual method is very simple. The XS code turns the node pointer into an integer and then returns it. I believe that this is correct because of the implementation of isSameNode.

I also included tests, documentation, Changes, and Manifest updates.

Comments (0)