查找元素 getElementById(String id) getElementsByTag(String tag) getElementsByClass(String className) getElementsByAttribute(String key) (and related methods) Element siblings: siblingElements(), firstElementSibling(
所有方法 实例方法 抽象方法 Default Methods 变量和类型方法描述 XPathExpressioncompile(String expression) 编译XPath表达式以供以后评估。 Stringevaluate(String expression, Object item) 在指定的上下文中计算XPath表达式并将结果返回为 String。 Objectevaluate(String expression, Object item, QName re...
所有方法 实例方法 抽象方法 Default Methods 变量和类型方法描述 Stringevaluate(Object item) 在指定的上下文中计算已编译的XPath表达式,并将结果作为 String返回。 Objectevaluate(Object item, QName returnType) 在指定的上下文中计算已编译的XPath表达式,并将结果作为指定的类型返回。 Stringevaluate(...
Methods inherited from class org.apache.jmeter.functions.AbstractFunction addVariableValue, checkMinParameterCount, checkParameterCount, checkParameterCount, execute, getVariables Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, ...
Evaluate an XPath expression in the context of the specifiedInputSourceand return the result as aString. Object evaluate(Stringexpression,InputSourcesource,QNamereturnType) Evaluate an XPath expression in the context of the specifiedInputSourceand return the result as the specified type. ...
Declarations for other inherited methods are * also included here for convenience. * * The List interface provides four methods for positional (indexed) * access to list elements. Lists (like Java arrays) are zero based. Note * that these operations may execute in time proportional to the...
XPathFunctionprovides access to XPath functions. Functions are identified by QName and arity in XPath. Since: 1.5 Method Summary Modifier and Type Method Description Object evaluate(List<?> args) Evaluate the function with the specified arguments. ...
3.2 Class types In addition to the QName types, the XPath API supports the use of Class types through the XPathExpression.evaluateExpression(...) or XPath.evaluateExpression(...) methods. The XPath data types are mapped to Class types as follows: Boolean -- Boolean.class Number -- Number...
Initialize NodeList Java public static final class EmptyNodeList implements NodeList{ //no op methods } private NodeList compileToNodeList(String pattern, Document document){ NodeList compiledNodeList = null; try{ compiledNodeList = (NodeList) xPath.compile("/*/UserList/User").evaluate(document, XPat...
XPath.LocationPath[] getLocationPaths() Returns a representation of all location paths for this XPath. static void main(String[] argv) Main program entry. String toString() Returns a string representation of this object. Methods inherited from class ...