public final class XPathExtensions
extends java.lang.Object
XPathExtensions.| Constructor and Description |
|---|
XPathExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.NodeList |
getNodeList(java.io.File xml,
java.lang.String xpathExpression)
Gets the node list from the given xml file and the given xpath expression.
|
static org.w3c.dom.NodeList |
getNodeList(java.lang.String xml,
java.lang.String xpathExpression)
Gets the node list from the given xml file and the given xpath expression.
|
public static org.w3c.dom.NodeList getNodeList(java.io.File xml,
java.lang.String xpathExpression)
throws javax.xml.xpath.XPathExpressionException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
xml - the xmlxpathExpression - the xpath expressionjavax.xml.xpath.XPathExpressionException - the x path expression exceptionjavax.xml.parsers.ParserConfigurationException - the parser configuration exceptionorg.xml.sax.SAXException - the sAX exceptionjava.io.IOException - Signals that an I/O exception has occurred.public static org.w3c.dom.NodeList getNodeList(java.lang.String xml,
java.lang.String xpathExpression)
throws javax.xml.xpath.XPathExpressionException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
xml - the xml file as string.xpathExpression - the xpath expression as string.javax.xml.xpath.XPathExpressionException - the x path expression exceptionjavax.xml.parsers.ParserConfigurationException - the parser configuration exceptionorg.xml.sax.SAXException - the sAX exceptionjava.io.IOException - Signals that an I/O exception has occurred.