XPathEvaluator xpath = new XPathEvaluator();
XPathExpression exp = xpath.createExpression("/error/@module");
NodeInfo moduleAtt = (NodeInfo)exp.evaluateSingle((NodeInfo)root);
String module = (moduleAtt == null ? null : moduleAtt.getStringValue());
exp = xpath.createExpression("/error/@line");
NodeInfo lineAtt = (NodeInfo)exp.evaluateSingle((NodeInfo)root);
int line = (lineAtt == null ? -1 : Integer.parseInt(lineAtt.getStringValue()));
exp = xpath.createExpression("/error/@column");
NodeInfo columnAtt = (NodeInfo)exp.evaluateSingle((NodeInfo)root);
int column = (columnAtt == null ? -1 : Integer.parseInt(columnAtt.getStringValue()));
ExpressionLocation locator = new ExpressionLocation();