More on PHP XPath

So I spent more time with the PHP XPath class mentioned yesterday. The most useful thing I discovered is that you don’t have to specify absolute XPaths in order to modify nodes in the document. You can specify the behavior of the class to concern itself with one or all the nodes returned by a query. You can also convert an XPath expression to an absolute expression by using the class’ match method.

More like this: , .