For simplicity, this article only covers the evaluate method of XPathExpression.
为了简便起见,本文只讨论XPathExpression的evaluate方法。
It compiles that expression and returns it as an instance of the XPathExpression class.
它编译该表达式并将其作为xpathexpression类的实例返回。
XPathExpression objects are created by passing a String representation of the XPath expression into the compile method on XPath.
XPathExpression对象通过将XPath表达式的String表示传递给XPath的编译方法来创建。
To convert an XPath expression from a String to an XPathExpression object, which can then be applied to any node in an instance of the supported data model.
将XPath表达式从String转化为XPathExpression对象,然后将该对象应用于所支持的数据模型实例中的任何节点。
XPathExpression objects are compiled representations of the original XPath String; they represent internal, optimized representations of the XPath expression.
XPathExpression对象是原来的XPathString的编译表示,代表XPath表达式在内部的、经过优化的表示。
Both XPath and XPathExpression offer four different methods for evaluating an XPath expression, which are provided as different overloadings of a method called evaluate.
XPath和XPathExpression都提供了4种不同的方法计算XPath表达式,是通过重载evaluate实现的。
The version of evaluate() on XPathExpression takes a context (your DOM document object in most cases) and the return type, and operates just as the version on the XPath object did.
XPathExpression版本的 evaluate() 有两个参数,即上下文(多数情况下就是DOM文档对象)和返回类型,操作和XPath 对象的版本一样。
The version of evaluate() on XPathExpression takes a context (your DOM document object in most cases) and the return type, and operates just as the version on the XPath object did.
XPathExpression版本的 evaluate() 有两个参数,即上下文(多数情况下就是DOM文档对象)和返回类型,操作和XPath 对象的版本一样。
应用推荐