Android XPath Create getXpathExpression(String s)

Here you can find the source of getXpathExpression(String s)

Description

get Xpath Expression

Declaration

public static XPathExpression getXpathExpression(String s)
            throws XPathExpressionException 

Method Source Code

//package com.java2s;

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;

public class Main {
    public static XPathExpression getXpathExpression(String s)
            throws XPathExpressionException {
        return getXPath().compile(s);
    }/*  ww w.ja  v a 2  s  .  co  m*/

    public static XPath getXPath() {
        return XPathFactory.newInstance().newXPath();
    }
}

Related

  1. newXPath()
  2. newXPath(String androidPrefix)
  3. getXPath()