public Node selectSingleNode(Object context, String expression) { try { return (Node)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODE); } catch (Exception e) { throw new RuntimeException(e); } }
public Node selectSingleNode(Object context, String expression) { try { return (Node)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODE); } catch (Exception e) { throw new RuntimeException(e); } }
public Node selectSingleNode(Object context, String expression) { try { return (Node)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODE); } catch (Exception e) { throw new RuntimeException(e); } }
public Node selectSingleNode(Object context, String expression) { try { return (Node)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODE); } catch (Exception e) { throw new RuntimeException(e); } }
public List<Node> selectNodeSet(Object context, String expression) { try { NodeList nodeList = (NodeList)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODESET); List<Node> nodes = new ArrayList<Node>(nodeList.getLength()); for (int i = 0; i < nodeList.getLength(); i++) nodes.add(nodeList.item(i)); return nodes; } catch (Exception e) { throw new RuntimeException(e); } }
public List<Node> selectNodeSet(Object context, String expression) { try { NodeList nodeList = (NodeList)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODESET); List<Node> nodes = new ArrayList<Node>(nodeList.getLength()); for (int i = 0; i < nodeList.getLength(); i++) nodes.add(nodeList.item(i)); return nodes; } catch (Exception e) { throw new RuntimeException(e); } }
public List<Node> selectNodeSet(Object context, String expression) { try { NodeList nodeList = (NodeList)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODESET); List<Node> nodes = new ArrayList<Node>(nodeList.getLength()); for (int i = 0; i < nodeList.getLength(); i++) nodes.add(nodeList.item(i)); return nodes; } catch (Exception e) { throw new RuntimeException(e); } }
public List<Node> selectNodeSet(Object context, String expression) { try { NodeList nodeList = (NodeList)getXPathFactory().newXPath().evaluate(expression, context, XPathConstants.NODESET); List<Node> nodes = new ArrayList<Node>(nodeList.getLength()); for (int i = 0; i < nodeList.getLength(); i++) nodes.add(nodeList.item(i)); return nodes; } catch (Exception e) { throw new RuntimeException(e); } }