Code example for Node

Methods: getLocalName

0
		return factory.newXPath();
	} 
 
	public static String query(String xPathExpression, Node node, XPath xPath) {
		try { 
			return xPath.evaluate(xPathExpression, node);
		} catch (XPathExpressionException e) {
			String message = String.format(
					"Failed to evaluate Node %s with xPath expression %s.", 
					node.getLocalName(), xPathExpression);
			throw new JewelException(message, e);
		} 
	} 
 
	public static NodeList queryList(String xPathExpression, Node node,
			XPath xPath) {
		try { 
			return (NodeList) xPath.evaluate(xPathExpression, node,
					XPathConstants.NODESET);
		} catch (XPathExpressionException e) {
			String message = String.format(