@Test public void testAs() throws XpathSyntaxErrorException { List<JXNode> jxNodeList = custom.selN(" for (JXNode jxNode : jxNodeList) { System.out.println(jxNode.getTextVal()); } }
public List<JXNode> selN(String xpath) throws XpathSyntaxErrorException{ try { return xpathEva.xpathParser(xpath,elements); }catch (Exception e){ String msg = "please check the xpath syntax"; if (e instanceof NoSuchAxisException||e instanceof NoSuchFunctionException){ msg = e.getMessage(); } throw new XpathSyntaxErrorException(msg); } }
JXDocument { public List<JXNode> selN(String xpath) throws XpathSyntaxErrorException{ try { return xpathEva.xpathParser(xpath,elements); }catch (Exception e){ String msg = "please check the xpath syntax"; if (e instanceof NoSuchAxisException||e instanceof NoSuchFunctionException){ msg = e.getMessage(); } throw new XpathSyntaxErrorException(msg); } } }
JXDocument { public List<JXNode> selN(String xpath) throws XpathSyntaxErrorException{ try { return xpathEva.xpathParser(xpath,elements); }catch (Exception e){ String msg = "please check the xpath syntax"; if (e instanceof NoSuchAxisException||e instanceof NoSuchFunctionException){ msg = e.getMessage(); } throw new XpathSyntaxErrorException(msg); } } JXDocument(Document doc);  JXDocument(String html);  JXDocument(Elements els); }
JXDocument { public List<JXNode> selN(String xpath) throws XpathSyntaxErrorException{ try { return xpathEva.xpathParser(xpath,elements); }catch (Exception e){ String msg = "please check the xpath syntax"; if (e instanceof NoSuchAxisException||e instanceof NoSuchFunctionException){ msg = e.getMessage(); } throw new XpathSyntaxErrorException(msg); } } JXDocument(Document doc);  JXDocument(String html);  JXDocument(Elements els); List<Object> sel(String xpath); List<JXNode> selN(String xpath); Object selOne(String xpath); JXNode selNOne(String xpath); }
JXDocument { public List<JXNode> selN(String xpath) throws XpathSyntaxErrorException{ try { return xpathEva.xpathParser(xpath,elements); }catch (Exception e){ String msg = "please check the xpath syntax"; if (e instanceof NoSuchAxisException||e instanceof NoSuchFunctionException){ msg = e.getMessage(); } throw new XpathSyntaxErrorException(msg); } } JXDocument(Document doc);  JXDocument(String html);  JXDocument(Elements els); List<Object> sel(String xpath); List<JXNode> selN(String xpath); Object selOne(String xpath); JXNode selNOne(String xpath);  }