public class DomParser extends Object
Constructor and Description |
---|
DomParser() |
Modifier and Type | Method and Description |
---|---|
static Element |
from(File f) |
static Element |
from(InputStream f) |
static Element |
getElementFromXPath(Document document,
String expression) |
static Element |
getElementFromXPath(Element root,
String expression) |
static List<Element> |
getElementsFromXPath(Document document,
String expression) |
static List<Element> |
getElementsFromXPath(Element root,
String expression) |
static XPathExpression |
getExpression(String expression) |
static NodeList |
getNodesFromXPath(Document document,
String expression) |
static NodeList |
getNodesFromXPath(Element root,
String expression) |
static List<Element> |
toElementList(NodeList nl) |
public static XPathExpression getExpression(String expression) throws XPathExpressionException
XPathExpressionException
public static NodeList getNodesFromXPath(Document document, String expression) throws XPathExpressionException
XPathExpressionException
public static NodeList getNodesFromXPath(Element root, String expression) throws XPathExpressionException
XPathExpressionException
public static List<Element> getElementsFromXPath(Document document, String expression) throws XPathExpressionException
XPathExpressionException
public static List<Element> getElementsFromXPath(Element root, String expression) throws XPathExpressionException
XPathExpressionException
public static Element getElementFromXPath(Document document, String expression) throws XPathExpressionException
XPathExpressionException
public static Element getElementFromXPath(Element root, String expression) throws XPathExpressionException
XPathExpressionException
public static Element from(File f) throws ConfigurationException
ConfigurationException
public static Element from(InputStream f) throws ConfigurationException
ConfigurationException