Jump to content

mikhak

New Members
  • Posts

    8
  • Joined

  • Last visited

mikhak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No i dont know 'yes' word in p tag mybe span tag or h1 or h2 or another tag i want having xpath according of only word not tag and word. this is //p[.=YES] tag and word together. thank you for help.
  2. Hi i want know how i can getting a xpath address of a string in html code. for example i want finding xpath of YES in this html code : <div><div> <div><div> <div> <p>NO</p> <div> <p>a text</p> </div> </div> </div> <div> <div> <p>YES</p> <div> <p>b text</p> </div> </div> </div></div> </div></div> i used the http://php.net/manual/en/domnode.getnodepath.php but thats only work with tag name and not working with a word or text searching in a string. i want getting like this result finally : /html/body/div/div/div/div[2]/div/p how i can doing like that ? and is it possible doint that with php simple_html_dom parser ? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.