getLog().info("Downloading: " + page);
URL url = new URL(page);
try {
TidyMarkupDataFormat dataFormat = new TidyMarkupDataFormat();
dataFormat.setMethod("html");
Node doc = dataFormat.asNodeTidyMarkup(new BufferedInputStream(url.openStream()));
XPath xpath = XPathFactory.newInstance().newXPath();
Node nd = (Node)xpath.evaluate("//div[@class='" + contentDivClass + "']", doc, XPathConstants.NODE);
if (nd != null) {
return new XmlConverter().toString(nd, null);
}