See
Using Firebug to design XPath expressions