82 NodeList result = null;
83 XPathFactory xpathFactory = XPathFactory.newInstance();
84 XPath xpath = xpathFactory.newXPath();
85 try {
86 result = (NodeList) xpath.eva luate(express, source, XPathConstants.NODESET);
87 } catch (XPathExpressionException e) {
88 }
89 return result;
90 }
91 }
作者 Stephen_Liu