With this bookmarklet you can click a html element and get and edit an XPath/CSS Path expression to it.
AquaPath is a free Cocoa-based developer tool for Mac OS X Tiger that allows you evaluate XPath expressions against any XML document and view the result sequence in a dynamic, intuitive tree representation.