Updated the XPATH query to "/xmlns:worksheet/xmlns:hyperlinks/xmlns:hyperlink[id]" to avoid the previous error "NoMethodError (undefined method `text' for nil:NilClass)"