List of utility methods to do XPath Create
XPath | newXPath() Creates a new XPath object using the default prefix for the android namespace. XPath xpath = sFactory.newXPath();
xpath.setNamespaceContext(AndroidNamespaceContext.getDefault());
return xpath;
|
XPath | newXPath(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; |
XPath | getXPath() get X Path return XPathFactory.newInstance().newXPath();
|
XPathExpression | getXpathExpression(String s) get Xpath Expression return getXPath().compile(s);
|