Code example for XPath

Methods: setNamespaceContext

0
	 *            The namespace prefix. 
	 */ 
	public static XPath newXPath(String androidPrefix) {
		XPath xpath = sFactory.newXPath();
		if (androidPrefix == null) {
			xpath.setNamespaceContext(AndroidNamespaceContext.getDefault());
		} else { 
			xpath.setNamespaceContext(new AndroidNamespaceContext(androidPrefix));
		} 
		 
		return xpath;
	} 
}