dynamic xpath expression
Posted
by Ferol
on Stack Overflow
See other posts from Stack Overflow
or by Ferol
Published on 2010-04-22T10:50:45Z
Indexed on
2010/04/22
10:53 UTC
Read the original article
Hit count: 246
xpath
Good day, colleagues! Tell me please, how to make a dynamic xpath-parsing: for example, instead of writing $domXPath->query('//[(@id = "article-id-18")]'); -> write something like that $domXPath->query('//[(@id = "article-id-*")]');, because in my case, the site's script generate (every time) a new id for block, that contains article's text? So question, is above.
© Stack Overflow or respective owner