/**
* selectXMLNode
*
* @param xpath
* @return Node
*/
public Node selectXMLNode(String xpath) {
for (Document doc : this.docs) {
try {
Node node = (Node) this.xpath.evaluate(xpath, doc, XPathConstants.NODE);
if (null != node) {
return node;
}
}
catch (XPathExpressionException e) {
if (this.logger.isLogEnabled()) {
this.logger.warn("Select nodes[" + xpath + "] from doc[" + doc + "] FAILs.", e);
}
}
}
return null;
}
ComponentProfileHandler.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:uavstack
作者:
评论列表
文章目录