Xpath noob: querying an xml element using xpath and a unique attribute?
        Posted  
        
            by rutherford
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by rutherford
        
        
        
        Published on 2009-11-16T20:29:06Z
        Indexed on 
            2010/05/11
            4:14 UTC
        
        
        Read the original article
        Hit count: 351
        
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.
© Stack Overflow or respective owner