5

I am getting a url form a HTML Page with this Xpath:

//*[@id="page"]/div[1]/table/tr[9]/td[2]/a/@href

This code Output show link like this

href="test/306811.zip"

I want add site domain to outupt like this:

href="http://domain.com/test/306811.zip"

How can do this ?

StuartLC
  • 104,537
  • 17
  • 209
  • 285
alireza
  • 537
  • 1
  • 5
  • 18

1 Answers1

3

Use concat or string-join, e.g.

concat('http://domain.com/', //*[@id="page"]/div[1]/table/tr[9]/td[2]/a/@href)
Community
  • 1
  • 1
StuartLC
  • 104,537
  • 17
  • 209
  • 285