Xpath noob: querying an xml element using xpath and a unique attribute?
- by rutherford
I am querying a particularly ugly HTML file using xpath. I want to extract an HTML table that is buried deep within the document. However instead of going down through the hierarchy from //html/, is there anyway I can just reference the table's unique id attribute?
Obviously this would have far less chance of breaking due to page edits too.