xptr_eval

(PHP 4 >= 4.0.4, PECL)

xptr_eval --  Evaluate the XPtr Location Path in the given string

说明

class XPathContext {

int xptr_eval ( string eval_str [, domnode contextnode] )

}int xptr_eval ( XPathContext xpath_context, string eval_str [, domnode contextnode] )

警告

本函数暂无文档,仅有参数列表。


add a note add a note User Contributed Notes
Jorrit Kronjee
20-Nov-2003 02:48
Actually xptr_eval works exactly the same as xpath_eval and doesn't return an integer as suggested. I haven't tried anything with it and PHP (4.3.0 for me now) doesn't seem to be any help either. Even simple examples (from http://www.zvon.org/xxl/XPointerTutorial/Output/index.html) don't work, just because half of XPointer is not implemented. XPointer expressions like /1/1 do work.

Let's face it, this is all experimental, folks!