Android Utililty Methods XPath Create

List of utility methods to do XPath Create

Description

The list of methods to do XPath Create are organized into topic(s).

Method

XPathnewXPath()
Creates a new XPath object using the default prefix for the android namespace.
XPath xpath = sFactory.newXPath();
xpath.setNamespaceContext(AndroidNamespaceContext.getDefault());
return xpath;
XPathnewXPath(String androidPrefix)
Creates a new XPath object, specifying which prefix in the query is used for the android namespace.
XPath xpath = sFactory.newXPath();
xpath.setNamespaceContext(new AndroidNamespaceContext(androidPrefix));
return xpath;
XPathgetXPath()
get X Path
return XPathFactory.newInstance().newXPath();
XPathExpressiongetXpathExpression(String s)
get Xpath Expression
return getXPath().compile(s);