Package com.android.xml
Class AndroidXPathFactory
- java.lang.Object
-
- com.android.xml.AndroidXPathFactory
-
public class AndroidXPathFactory extends java.lang.Object
XPath factory with automatic support for the android name space.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_NS_PREFIX
Default prefix for android name space: 'android'
-
Constructor Summary
Constructors Constructor Description AndroidXPathFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.xpath.XPath
newXPath()
Creates a new XPath object using the default prefix for the android namespace.static javax.xml.xpath.XPath
newXPath(java.lang.String androidPrefix)
Creates a new XPath object, specifying which prefix in the query is used for the android namespace.
-
-
-
Field Detail
-
DEFAULT_NS_PREFIX
public static final java.lang.String DEFAULT_NS_PREFIX
Default prefix for android name space: 'android'- See Also:
- Constant Field Values
-
-
Method Detail
-
newXPath
public static javax.xml.xpath.XPath newXPath(java.lang.String androidPrefix)
Creates a new XPath object, specifying which prefix in the query is used for the android namespace.- Parameters:
androidPrefix
- The namespace prefix.
-
newXPath
public static javax.xml.xpath.XPath newXPath()
Creates a new XPath object using the default prefix for the android namespace.- See Also:
DEFAULT_NS_PREFIX
-
-