kyleburton/clj-xpath — pull request #11 by mtnygard (2012-12-28 20:34:47+00:00)
Title: New feature: given a node, go backward to a unique xpath expression

New function clj-xpath.core/abs-path.

It takes a node (in the map form returned by $x and company) and constructs a unique xpath expression to locate that node.

The expression isn't necessarily the one that was used to get to the node in the first place, but it will get _back_ to it reliably.