/** * Convenience method - Use ElectricXML to access the HTML in the response for easy access. */ protected Document getDocument( WebResponse rs ) throws IOException, SAXException, ParseException { return new Document( new StringReader( XMLUtils.print( rs.getDOM() ) ) ); }
/** * return the HTMLElements with the specified tag name * @param tagName e.g. "div" or "table" * @return a list of all HTMLElements with that tag name * @throws SAXException * @since 1.7 */ public HTMLElement[] getElementsByTagName(String tagName) throws SAXException { return getReceivedPage().getElementsByTagName(getDOM(),tagName); }
/** * return the HTMLElements with the specified tag name * @param tagName e.g. "div" or "table" * @return a list of all HTMLElements with that tag name * @throws SAXException * @since 1.7 */ public HTMLElement[] getElementsByTagName(String tagName) throws SAXException { return getReceivedPage().getElementsByTagName(getDOM(),tagName); }
/** * return the HTMLElements with the specified tag name * @param tagName e.g. "div" or "table" * @return a list of all HTMLElements with that tag name * @throws SAXException * @since 1.7 */ public HTMLElement[] getElementsByTagName(String tagName) throws SAXException { return getReceivedPage().getElementsByTagName(getDOM(),tagName); }
public Document scrape() throws IOException, SAXException, ProcessingException { WebResponse rsp = project.goTo(project.getURL()+"issues/xmlupdate.cgi?"+queryParam); return new DOMReader().read(rsp.getDOM()); } }.run();
public Document scrape() throws IOException, SAXException, ProcessingException { String query = (queryName == null ? "runuserdefault" : "runnamed&namedcmd="+queryName); WebResponse rsp = project.goTo(project.getURL()+"issues/buglist.cgi?&cmdtype="+query+"&format=xml"); return new DOMReader().read(rsp.getDOM()); } }.run();
public Document scrape() throws IOException, SAXException, ProcessingException { WebResponse rsp = project.goTo(project.getURL()+"issues/"+ XML_CGI +"?include_empty_issues=false&include_attachments=false&id="+idList); return new DOMReader().read(rsp.getDOM()); } }.run();