FileDocCategorySizeDatePackage
AndroidXPathFactory.javaAPI DocAndroid 1.5 API2875Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.common.project

AndroidXPathFactory

public class AndroidXPathFactory extends Object
XPath factory with automatic support for the android namespace.

Fields Summary
public static final String
DEFAULT_NS_PREFIX
private static final XPathFactory
sFactory
Constructors Summary
Methods Summary
public static javax.xml.xpath.XPathnewXPath(java.lang.String androidPrefix)
Creates a new XPath object, specifying which prefix in the query is used for the android namespace.

param
androidPrefix The namespace prefix.

        XPath xpath = sFactory.newXPath();
        xpath.setNamespaceContext(new AndroidNamespaceContext(androidPrefix));
        return xpath;
    
public static javax.xml.xpath.XPathnewXPath()
Creates a new XPath object using the default prefix for the android namespace.

see
#DEFAULT_NS_PREFIX

        return newXPath(DEFAULT_NS_PREFIX);