I am in need of a HTML parser that only extract attributes of elements that have been clicked ( like firebug). I want to create one if there isn't anything already available. Any ideas or suggestions would be really appreciated. So basically, I want to be able to click on an element and get its xpath or id, and then I will store that to a database for further use. I need help with the extraction part.