This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
XPathExpression expr
= xpath.compile("//Pool[@name='BLR' and @enabled='true']/*/text()");
Object result = expr.evaluate(doc, XPathConstants.NODESET);
NodeList nodes = (NodeList) result;
System.out.println("pool name BLR and enabled True");
for (int i = 0; i < nodes.getLength(); i++) {
System.out.println(nodes.item(i).getNodeValue());
}
I have many XPathExpression like expr1 ,expr2 etc to read and display.how can i generalise this code? I am new to java.Can any one give a solution
Thank you !
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.