import org.apache.xml.serialize.XMLSerializer;
import org.w3c.dom.Document;
import org.w3c.tidy.Tidy;
-import org.wamblee.xml.DOMUtility;
+import org.wamblee.xml.DomUtils;
import org.wamblee.xml.XslTransformer;
/**
LOG.debug("Transformed result is \n" + os.toString());
return transformed;
} catch (TransformerConfigurationException e) {
- throw new RuntimeException(e.getMessage(), e);
+ throw new TransformerException("Transformer configuration problem", e);
} finally {
// Release the connection.
aMethod.releaseConnection();
// in a system wide way.
ByteArrayOutputStream os = new ByteArrayOutputStream();
Document w3cDoc = tidy.parseDOM(aMethod.getResponseBodyAsStream(), os);
- DOMUtility.removeDuplicateAttributes(w3cDoc);
+ DomUtils.removeDuplicateAttributes(w3cDoc);
LOG.debug("Content of response is \n" + os.toString());
ByteArrayOutputStream xhtml = new ByteArrayOutputStream();
// recursion.
}
default: {
- throw new RuntimeException("Method failed: "
+ throw new IOException("Method failed: "
+ aMethod.getStatusLine());
}
}