From: nonSonoPaola <non...@gm...> - 2016-09-05 17:59:43
|
Hi, Can anyone help me solving this issue? Il 09/ago/2016 20:11, "nonSonoPaola" <non...@gm...> ha scritto: > Hi, > I'm still facing svg retrieval from html. > Now I have an annoying issue. > See attached test.html file (please move *.js and *.css files to a folder > named resources before running any test). > > Html retrieval works fine (see output.html), but svg selection truncates > the x axis and the chart legend (see attached svg.html). > > Below you fine a code snippet of svg retrieval... > > Can anyone help me? > > Laura > > private static final String SVG_TAG_XPATH_QUERY = ".//*[local-name() = > 'svg']"; > > > WebClient webClient = null; > > try { > > webClient = new WebClient(); > > final HtmlPage page = webClient.getPage(reportUrl); > > DomNode svg = (DomNode) page.getFirstByXPath(SVG_TAG_XPATH_QUERY); > > System.out.println(svg.asXml()); > > } catch (Throwable t) { > > trace.error(t.getMessage(), t); > > throw new MonitoringToolPdfGeneratorException(t); > > } finally { > > if (webClient != null) > > webClient.close(); > > } > > > > |