in reply to web::scraper using an xpath

You can't go "pairwise" over a list with XPath.

You will need to capture all TD contents and then do the reconstruction of name+attribute in Perl if the table is really structured (and classed) the way you show.