public class XPathHelper extends Object
| Constructor and Description |
|---|
XPathHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
checkNodeExists(XPath xpath,
Document doc,
String xpathStr) |
static String |
getMultiValuesXPath(XPath xpath,
Document doc,
String xpathStr) |
static String |
getMultiValuesXPath(XPath xpath,
Document doc,
String xpathStr,
String attr) |
static String |
getStringAttribute(XPath xpath,
Document doc,
String xpathStr) |
static String |
getValueXPath(XPath xpath,
Document doc,
String xpathStr) |
public static String getMultiValuesXPath(XPath xpath, Document doc, String xpathStr) throws XPathExpressionException
XPathExpressionExceptionpublic static String getMultiValuesXPath(XPath xpath, Document doc, String xpathStr, String attr) throws XPathExpressionException
XPathExpressionExceptionpublic static String getValueXPath(XPath xpath, Document doc, String xpathStr) throws XPathExpressionException
XPathExpressionExceptionpublic static Boolean checkNodeExists(XPath xpath, Document doc, String xpathStr) throws XPathExpressionException
XPathExpressionExceptionpublic static String getStringAttribute(XPath xpath, Document doc, String xpathStr) throws XPathExpressionException
XPathExpressionExceptionCopyright © 2015. All Rights Reserved.