public class XPathExtensions extends Object
XPathExtensions.| Constructor and Description |
|---|
XPathExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static NodeList |
getNodeList(File xml,
String xpathExpression)
Gets the node list from the given xml file and the given xpath expression.
|
static NodeList |
getNodeList(String xml,
String xpathExpression)
Gets the node list from the given xml file and the given xpath expression.
|
public static NodeList getNodeList(File xml, String xpathExpression) throws XPathExpressionException, ParserConfigurationException, SAXException, IOException
xml - the xmlxpathExpression - the xpath expressionXPathExpressionException - the x path expression exceptionParserConfigurationException - the parser configuration exceptionSAXException - the sAX exceptionIOException - Signals that an I/O exception has occurred.public static NodeList getNodeList(String xml, String xpathExpression) throws XPathExpressionException, ParserConfigurationException, SAXException, IOException
xml - the xml file as string.xpathExpression - the xpath expression as string.XPathExpressionException - the x path expression exceptionParserConfigurationException - the parser configuration exceptionSAXException - the sAX exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.