Help with xPath

Discussion in 'PHP' started by web@master24, Jun 26, 2013.

  1. #1
    Hello i hope somebody can help me, i need get the image url from line like this:

    <div style="position: relative;z-index:0;" class="photo foto" onclick="zoom('h t tp://xxxxxxxxxx/xxxxx/xxxx/xxx.jpg');">

    but im really not getting how to do, im new with xpath, somebody think can help me?
     
    web@master24, Jun 26, 2013 IP
  2. desingshop98

    desingshop98 Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    This should work --
    string(//Parent[@class='foto']/@onclick)
     
    desingshop98, Jul 2, 2013 IP