use `'//tr[./td/input[@name="frm_tagged_documents"]]/td/a'`, then just `ZU.trimInternal(rows[i].textContent)` and `rows[i].href`