I have a snipet of html code,in client side, I use Jquery to modify some dom element’s content(pure text). and now I want to update the modifed text to the server as well.
what I am trying to do is to compute the modified element’s xpath in client side, and send it to server along with new content. the xpath will look something like” /div/div[2]/table/tr/td[2]…” but I don’t know how to make use of this path with php Dom xpath.
any guidance/suggestions will be appreciated.
I compute the position of each path like 1 3 4 2 4 and send the path to server, correspondingly server find find the position using the path.