set agreementId using xpath