Recuperar un boolean a partir de una expresión XPath
Artículo por Club Developers · 28 mayo 2006
2125 vistas
			
		Veamos un método que permite recuperar un boolean (java.lang.Boolean) con XPath.
 
		
		java
try{
// creación del source
InputSource source = new InputSource(stream);
// creación del XPath
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
// evaluar la expresión XPath
XPathExpression exp = xpath.compile(expression);
}catch(XPathExpressionException xpee){
xpee.printStackTrace();
}
return b;
}



